org.jivesoftware.smackx.bytestreams.ibb
Class InBandBytestreamTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.jivesoftware.smack.test.SmackTestCase
              extended by org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamTest
All Implemented Interfaces:
junit.framework.Test

public class InBandBytestreamTest
extends SmackTestCase

Test for In-Band Bytestreams with real XMPP servers.

Author:
Henning Staib

Constructor Summary
InBandBytestreamTest(java.lang.String arg0)
           
 
Method Summary
 void testBiDirectionalInBandBytestream()
          An In-Band Bytestream should be successfully established using IQ stanzas.
 void testInBandBytestreamWithIQStanzas()
          An In-Band Bytestream should be successfully established using IQ stanzas.
 void testInBandBytestreamWithMessageStanzas()
          An In-Band Bytestream should be successfully established using message stanzas.
 void testRespondWithErrorOnInBandBytestreamRequest()
          Target should respond with not-acceptable error if no listeners for incoming In-Band Bytestream requests are registered.
 
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

InBandBytestreamTest

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

testRespondWithErrorOnInBandBytestreamRequest

public void testRespondWithErrorOnInBandBytestreamRequest()
                                                   throws XMPPException
Target should respond with not-acceptable error if no listeners for incoming In-Band Bytestream requests are registered.

Throws:
XMPPException - should not happen

testInBandBytestreamWithIQStanzas

public void testInBandBytestreamWithIQStanzas()
                                       throws java.lang.Exception
An In-Band Bytestream should be successfully established using IQ stanzas.

Throws:
java.lang.Exception - should not happen

testInBandBytestreamWithMessageStanzas

public void testInBandBytestreamWithMessageStanzas()
                                            throws java.lang.Exception
An In-Band Bytestream should be successfully established using message stanzas.

Throws:
java.lang.Exception - should not happen

testBiDirectionalInBandBytestream

public void testBiDirectionalInBandBytestream()
                                       throws java.lang.Exception
An In-Band Bytestream should be successfully established using IQ stanzas. The established session should transfer data bidirectional.

Throws:
java.lang.Exception - should not happen