org.jivesoftware.smack.packet
Class IQResponseTest

java.lang.Object
  extended by org.jivesoftware.smack.packet.IQResponseTest

public class IQResponseTest
extends java.lang.Object

Tests that verifies the correct behavior of creating result and error IQ packets.

Author:
Guenther Niess
See Also:
IQ Semantics

Constructor Summary
IQResponseTest()
           
 
Method Summary
 void testGeneratingErrorBasedOnError()
          According to RFC3920: IQ Semantics we shouldn't respond to an IQ of type error.
 void testGeneratingResponseBasedOnResult()
          According to RFC3920: IQ Semantics we shouldn't respond to an IQ of type result.
 void testGeneratingSimpleResponse()
          Test creating a simple and empty IQ response.
 void testGeneratingValidErrorResponse()
          Test creating a error response based on an IQ request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IQResponseTest

public IQResponseTest()
Method Detail

testGeneratingSimpleResponse

public void testGeneratingSimpleResponse()
Test creating a simple and empty IQ response.


testGeneratingValidErrorResponse

public void testGeneratingValidErrorResponse()
Test creating a error response based on an IQ request.


testGeneratingResponseBasedOnResult

public void testGeneratingResponseBasedOnResult()
According to RFC3920: IQ Semantics we shouldn't respond to an IQ of type result.


testGeneratingErrorBasedOnError

public void testGeneratingErrorBasedOnError()
According to RFC3920: IQ Semantics we shouldn't respond to an IQ of type error.