| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|
com.newstep.solid.test.comm
junit.framework.Assert
|
+--junit.framework.TestCase
|
+--com.newstep.solid.test.comm.MessageTest
All Implemented Interfaces:
Test
public class MessageTest
| Field Summary |
private final static int |
|
private final static int |
|
public final static int |
|
private final static Random |
|
| Method Summary |
|
|
|
|
|
|
|
|
|
|
|
|
public Class |
|
public static void |
|
public void |
|
public static Test |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
public void |
|
private final static int MAX_SIZE
Maximum size of the packets sent
Final.
Multiplicity:
1
Static.
private final static int MIN_SIZE
Minimum size of the packets sent
Final.
Multiplicity:
1
Static.
public final static int PACKETS_TO_SEND
Final.
Multiplicity:
1
Static.
private final static Random r
For generating random packet sizes.
Final.
Multiplicity:
1
Static.
public static Message generateHeartBeatMessage ()
Static.
public static Message generateMessage ()
Static.
Static.
public static Message generateRttDataMessage2 (Integer size)
Static.
public static Message generateRttEnableMessage (Message message, Integer idClient, Boolean enabled)
Static.
public static Message generateRttIdentMessage (Integer idClient, Integer idServer)
Static.
public Class getTestedClass ()
Get the class object of the class which will be tested.
Return:
The class which will be tested
public static void main (String args)
Utility main method. Runs the test cases defined in this test class.
Usage: java MessageTest
Parameters:
args Command line arguments are not needed
Static.
public void setUp ()
Used to set up the test. This method is called by JUnit before each of
the tests are executed.
See Also:
Throws:
Exception
public static Test suite ()
Static.
public void tearDown ()
Used to clean up after the test. This method is called by JUnit after
each of the tests have been completed.
See Also:
Throws:
Exception
public void testAddDataToMessage ()
public void testAddDataToMessage2 ()
public void testAddDataToMessage3 ()
public void testAddDataToMessage4 ()
public void testAddDataToMessage5 ()
public void testControlMessage ()
public void testCopyMessage ()
public void testDataMessage ()
Test for methods: packHeader(), unpackHeader(), unpackFixed() and RttDataHeader
public void testDataMessage2 ()
public void testGetAndTrim ()
public void testMessage1 ()
Test for method: Message()
See Also:
Throws:
Throwable
public void testMessage10 ()
Test for method: Message(byte[])
See Also:
Throws:
Throwable
public void testMessage11 ()
Test for method: Message(byte[])
See Also:
Throws:
Throwable
public void testMessage2 ()
Test for method: Message(java.nio.ByteBuffer)
See Also:
Throws:
Throwable
public void testMessage5 ()
Test for method: Message(int)
See Also:
Throws:
Throwable
public void testMessage6 ()
Test for method: Message(int)
See Also:
Throws:
Throwable
public void testMessage7 ()
Test for method: Message(com.newstep.solid.comm.Message)
See Also:
Throws:
Throwable
public void testMessage8 ()
Test for method: Message(byte[],Object)
See Also:
Throws:
Throwable
| | | | SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
|
|