org.jivesoftware.smack
Class IQTest

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.IQTest
All Implemented Interfaces:
junit.framework.Test

public class IQTest
extends SmackTestCase

Ensure that the server is handling IQ packets correctly.

Author:
Gaston Dombiak

Constructor Summary
IQTest(java.lang.String arg0)
           
 
Method Summary
 void testFullJIDToOfflineUser()
          Check that sending an IQ to a full JID that is offline returns an IQ ERROR instead of being route to some other resource of the same user.
 void testInvalidNamespace()
          Check that the server responds a 503 error code when the client sends an IQ packet with an invalid namespace.
 
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

IQTest

public IQTest(java.lang.String arg0)
Method Detail

testInvalidNamespace

public void testInvalidNamespace()
Check that the server responds a 503 error code when the client sends an IQ packet with an invalid namespace.


testFullJIDToOfflineUser

public void testFullJIDToOfflineUser()
Check that sending an IQ to a full JID that is offline returns an IQ ERROR instead of being route to some other resource of the same user.