org.jivesoftware.smackx.bytestreams.ibb
Class InBandBytestreamManagerTest

java.lang.Object
  extended by org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamManagerTest

public class InBandBytestreamManagerTest
extends java.lang.Object

Test for InBandBytestreamManager.

Author:
Henning Staib

Constructor Summary
InBandBytestreamManagerTest()
           
 
Method Summary
 void setup()
          Initialize fields used in the tests.
 void shouldCorrectlySetDefaultBlockSize()
           
 void shouldCorrectlySetMaximumBlockSize()
           
 void shouldFailIfTargetDoesNotSupportIBB()
          Invoking InBandBytestreamManager.establishSession(String) should throw an exception if the given target does not support in-band bytestream.
 void shouldHaveOneManagerForEveryConnection()
          Test that InBandBytestreamManager.getByteStreamManager(Connection) returns one bytestream manager for every connection
 void shouldNotAllowTooBigDefaultBlockSize()
           
 void shouldNotAllowTooBigMaximumBlockSize()
           
 void shouldReturnSession()
           
 void shouldUseConfiguredStanzaType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InBandBytestreamManagerTest

public InBandBytestreamManagerTest()
Method Detail

setup

public void setup()
Initialize fields used in the tests.


shouldHaveOneManagerForEveryConnection

public void shouldHaveOneManagerForEveryConnection()
Test that InBandBytestreamManager.getByteStreamManager(Connection) returns one bytestream manager for every connection


shouldFailIfTargetDoesNotSupportIBB

public void shouldFailIfTargetDoesNotSupportIBB()
Invoking InBandBytestreamManager.establishSession(String) should throw an exception if the given target does not support in-band bytestream.


shouldNotAllowTooBigDefaultBlockSize

public void shouldNotAllowTooBigDefaultBlockSize()

shouldCorrectlySetDefaultBlockSize

public void shouldCorrectlySetDefaultBlockSize()

shouldNotAllowTooBigMaximumBlockSize

public void shouldNotAllowTooBigMaximumBlockSize()

shouldCorrectlySetMaximumBlockSize

public void shouldCorrectlySetMaximumBlockSize()

shouldUseConfiguredStanzaType

public void shouldUseConfiguredStanzaType()

shouldReturnSession

public void shouldReturnSession()
                         throws java.lang.Exception
Throws:
java.lang.Exception