|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamSessionMessageTest
public class InBandBytestreamSessionMessageTest
Test for InBandBytestreamSession.
Tests sending data encapsulated in message stanzas.
| Constructor Summary | |
|---|---|
InBandBytestreamSessionMessageTest()
|
|
| Method Summary | |
|---|---|
void |
setup()
Initialize fields used in the tests. |
void |
shouldReadAllReceivedData1()
Test the input stream read(byte[], int, int) method. |
void |
shouldReadAllReceivedData2()
Test the input stream read() method. |
void |
shouldSendCloseRequestIfInvalidSequenceReceived()
If a data packet is received out of order the session should be closed. |
void |
shouldSendNothingOnSuccessiveCallsToFlush()
Test successive calls to the output stream flush() method. |
void |
shouldSendThirtyDataPackets()
Test the output stream flush() method. |
void |
shouldSendThreeDataPackets1()
Test the output stream write(byte[]) method. |
void |
shouldSendThreeDataPackets2()
Test the output stream write(byte) method. |
void |
shouldSendThreeDataPackets3()
Test the output stream write(byte[], int, int) method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InBandBytestreamSessionMessageTest()
| Method Detail |
|---|
public void setup()
public void shouldSendThreeDataPackets1()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSendThreeDataPackets2()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSendThreeDataPackets3()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSendThirtyDataPackets()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSendNothingOnSuccessiveCallsToFlush()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldSendCloseRequestIfInvalidSequenceReceived()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldReadAllReceivedData1()
throws java.lang.Exception
java.lang.Exception - should not happen
public void shouldReadAllReceivedData2()
throws java.lang.Exception
java.lang.Exception - should not happen
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||