org.jivesoftware.smack.packet
Class PrivacyProviderTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jivesoftware.smack.test.SmackTestCase
              extended by org.jivesoftware.smack.packet.PrivacyProviderTest
All Implemented Interfaces:
junit.framework.Test

public class PrivacyProviderTest
extends SmackTestCase

Test the PrivacyProvider class with valids privacy xmls

Author:
Francisco Vives

Constructor Summary
PrivacyProviderTest(java.lang.String arg0)
          Constructor for PrivacyTest.
 
Method Summary
static void main(java.lang.String[] args)
           
 void testDeclineLists()
          Check the parser with an xml with empty lists.
 void testEmptyLists()
          Check the parser with an xml with empty lists.
 void testFull()
          Check the parser with an xml with all kind of stanzas.
 
Methods inherited from class org.jivesoftware.smack.test.SmackTestCase
assertEquals
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PrivacyProviderTest

public PrivacyProviderTest(java.lang.String arg0)
Constructor for PrivacyTest.

Parameters:
arg0 -
Method Detail

main

public static void main(java.lang.String[] args)

testFull

public void testFull()
Check the parser with an xml with all kind of stanzas. To create the xml string based from an xml file, replace:\n with: "\n + "


testEmptyLists

public void testEmptyLists()
Check the parser with an xml with empty lists. It includes the active, default and special list. To create the xml string based from an xml file, replace:\n with: "\n + "


testDeclineLists

public void testDeclineLists()
Check the parser with an xml with empty lists. It includes the active, default and special list. To create the xml string based from an xml file, replace:\n with: "\n + "