Package edu.nps.moves.dis7.test


package edu.nps.moves.dis7.test
This package includes a variety of PDU unit tests to confirm opendis7-java code correctness. The test tree is maintained separately from other source in order to support the project build with special CLASSPATH, annotations and assertions.
  • Classes
    Class
    Description
    This is a test class (which can also be run through its main() method) which tests round-tripping of pdus, i.e., creating a pdu instance in java, serializing it and sending over the network as a stream of bytes, at the same time reading them back from the net.
    Unit tests for satisfactory handling of various necessary bit fields, supporting each data type.
    Unit testing for CommentPdus, which can serve as a free-form holder for any kind of narrative information or simulation data.
    Manually constructed tests for many object types.
    Unit tests for satisfactory creation of all PDU objects.
    Unit tests for DataQuery PDU fields and values.
    Unit tests for satisfactory handling of Detonation PDU fields and values.
    Unit tests for satisfactory handling of Entity State PDU (ESPDU) fields and values.
    Unit tests for satisfactory handling of Fire PDU fields and values.
    Unit tests for satisfactory handling of FixedDatum and VariableRecordType fields and values.
    IFFMode5StatusRecord for IFFPduLayer3TransponderFormatData included in IFFPdu.
    nested subclass
     
    EntityType is instantiated with a default Domain of PlatformDomain-OTHER which causes issues down the road with similar enum values of other Domain types
    Unit tests for marshalling enumeration fields and values.
    Unit tests for satisfactory handling of null fields and values when marshalling object instances.
    Unit tests for satisfactory handling of typed fields and values when marshalling object instances.
    Unit tests for satisfactory factory creation of each PDU class.
    Abstract superclass for PDU testing, containing shared methods.
    This is an important unit test that examines the validity of two special-case signal PDUs.
    Unit tests for satisfactory filtering and creation of X3D interpolator values from a series of ESPDU track points.