Package edu.nps.moves.dis7.test
Class PduFactoryExtendedTest
java.lang.Object
edu.nps.moves.dis7.test.PduFactoryExtendedTest
Extended unit tests for PduFactory utility class.
Validates factory configuration, PDU creation with custom parameters,
timestamp assignment, header consistency, and deserialization.
Supplements existing PduFactoryTest with deeper coverage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidCommand-line invocation (CLI) of program, execution starts herestatic voidstatic voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoid
-
Constructor Details
-
PduFactoryExtendedTest
public PduFactoryExtendedTest()default constructor
-
-
Method Details
-
setUpClass
@BeforeAll public static void setUpClass() -
tearDownClass
@AfterAll public static void tearDownClass() -
testDefaultFactory
@Test public void testDefaultFactory() -
testCustomTimestampStyle
@Test public void testCustomTimestampStyle() -
testFullConstructor
@Test public void testFullConstructor() -
testMakeEntityStatePdu
@Test public void testMakeEntityStatePdu() -
testMakeFirePdu
@Test public void testMakeFirePdu() -
testMakeDetonationPdu
@Test public void testMakeDetonationPdu() -
testMakeCommentPduWithStrings
@Test public void testMakeCommentPduWithStrings() -
testHeaderConsistencyAcrossPduTypes
@Test public void testHeaderConsistencyAcrossPduTypes() -
testMarshalUnmarshalRoundTrip
- Throws:
Exception
-
testCreatePduByType
@Test public void testCreatePduByType() -
testMakeCollisionPdu
@Test public void testMakeCollisionPdu() -
testMakeCreateEntityPdu
@Test public void testMakeCreateEntityPdu() -
main
Command-line invocation (CLI) of program, execution starts here- Parameters:
args- command-line arguments- Throws:
Exception
-