Class PduFactoryExtendedTest

java.lang.Object
edu.nps.moves.dis7.test.PduFactoryExtendedTest

@DisplayName("PduFactoryExtendedTest") public class PduFactoryExtendedTest extends Object
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 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

      @Test public void testMarshalUnmarshalRoundTrip() throws Exception
      Throws:
      Exception
    • testCreatePduByType

      @Test public void testCreatePduByType()
    • testMakeCollisionPdu

      @Test public void testMakeCollisionPdu()
    • testMakeCreateEntityPdu

      @Test public void testMakeCreateEntityPdu()
    • main

      public static void main(String[] args) throws Exception
      Command-line invocation (CLI) of program, execution starts here
      Parameters:
      args - command-line arguments
      Throws:
      Exception