Package edu.nps.moves.dis7.test
Class EventReportPduTest
java.lang.Object
edu.nps.moves.dis7.test.PduTest
edu.nps.moves.dis7.test.EventReportPduTest
Unit tests for satisfactory handling of Event Report PDU fields and values.
-
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 herestatic voidpreparationvoidTest PDU sending, receiving, marshalling (serialization) and unmarshalling (deserialization)protected voidtestOnePdu(Pdu createdPdu) Test single PDU for correctness according to all contained fields in this PDU typeMethods inherited from class edu.nps.moves.dis7.test.PduTest
compare, getMasterEventNumber, getMaximumRetryAttempts, getThreadSleepInterval, incrementMasterEventNumber, isVerbose, prepareClass, sendIeeeStandardPdu, setMasterEventNumber, setMaximumRetryAttempts, setThreadSleepInterval, setUp, setVerbose, sleep, sleep, sleep, tearDown, tearDownClass, testPduCommonFields, testPduSendReceiveHeaderMatch
-
Constructor Details
-
EventReportPduTest
public EventReportPduTest()default constructor
-
-
Method Details
-
setUpClass
@BeforeAll public static void setUpClass()preparation -
testMultiplePdus
@Test public void testMultiplePdus()Test PDU sending, receiving, marshalling (serialization) and unmarshalling (deserialization)- Specified by:
testMultiplePdusin classPduTest
-
testOnePdu
Description copied from class:PduTestTest single PDU for correctness according to all contained fields in this PDU type- 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
-