Package edu.nps.moves.dis7.test
Class DetonationPduTest
java.lang.Object
edu.nps.moves.dis7.test.PduTest
edu.nps.moves.dis7.test.DetonationPduTest
Unit tests for Detonation PDU fields and values.
- Author:
- <a href="mailto:tdnorbra@nps.edu?subject=edu.nps.moves.dis7.DetonationPduTest">Terry Norbraten, NPS MOVES</a>
-
Field Summary
Fields inherited from class edu.nps.moves.dis7.test.PduTest
THREAD_SLEEP_INTERVAL_MSEC_DEFAULT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCommand-line invocation (CLI) of program, execution starts hereprotected voidtestOnePdu(Pdu createdPdu) Test single PDU for correctness according to all contained fields in this PDU type See https://en.wikipedia.org/wiki/Marshalling_(computer_science)voidTest PDU sending, receiving, marshalling (serialization) and unmarshalling (deserialization)Methods inherited from class edu.nps.moves.dis7.test.PduTest
compare, getMaximumRetryAttempts, getThreadSleepInterval, sendIeeeStandardPdu, setMaximumRetryAttempts, setThreadSleepInterval, setUp, setUpClass, setUpReceiver, tearDown, tearDownClass, testPduFinishingChecks, testPduSendReceiveHeaderMatch
-
Constructor Details
-
DetonationPduTest
public DetonationPduTest()constructor
-
-
Method Details
-
testRoundTrip
@Test public void testRoundTrip()Test PDU sending, receiving, marshalling (serialization) and unmarshalling (deserialization)- Specified by:
testRoundTripin classPduTest
-
testOnePdu
Test single PDU for correctness according to all contained fields in this PDU type See https://en.wikipedia.org/wiki/Marshalling_(computer_science)- Specified by:
testOnePduin classPduTest- Parameters:
createdPdu- separate PDU for comparison
-
main
Command-line invocation (CLI) of program, execution starts here- Parameters:
args- command-line arguments
-