Class DetonationPduTest

java.lang.Object
edu.nps.moves.dis7.test.PduTest
edu.nps.moves.dis7.test.DetonationPduTest

@DisplayName("DetonationPduTest") public class DetonationPduTest extends PduTest
Unit tests for satisfactory handling of Detonation PDU fields and values.
Author:
<a href="mailto:tdnorbra@nps.edu?subject=edu.nps.moves.dis7.DetonationPduTest">Terry Norbraten, NPS MOVES</a>
  • Constructor Details

    • DetonationPduTest

      public DetonationPduTest()
      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:
      testMultiplePdus in class PduTest
    • testOnePdu

      protected void testOnePdu(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)
      Specified by:
      testOnePdu in class PduTest
      Parameters:
      createdPdu - separate PDU for comparison
    • main

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