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. A number of tests were autogenerated using Claude Code https://claude.ai/new -
see the README.tests.md for list of original tests.-
ClassesClassDescriptionUnit tests for satisfactory handling of Acknowledge PDU fields and values.Unit tests for satisfactory handling of Acknowledge Reliable PDU fields and values.Unit tests for satisfactory handling of Action Request PDU fields and values.Unit tests for satisfactory handling of Action Request Reliable PDU fields and values.Unit tests for satisfactory handling of Action Response PDU fields and values.Unit tests for satisfactory handling of Action Response Reliable PDU fields and values.Unit tests for satisfactory handling of Aggregate State PDU fields and values.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 AntennaLocation data structure.Unit tests for satisfactory handling of Appearance PDU fields and values.Unit tests for satisfactory handling of Areal Object State PDU fields and values.Unit tests for satisfactory handling of Articulated Parts PDU fields and values.Unit tests for satisfactory handling of Attribute PDU fields and values.Unit tests for satisfactory handling of various necessary bit fields, supporting each data type.Unit tests for ClockTime data structure.Unit tests for satisfactory handling of Collision Elastic PDU fields and values.Unit tests for satisfactory handling of Collision PDU fields and values.Unit testing for CommentPdus, which can serve as a free-form holder for any kind of narrative information or simulation data.Unit tests for satisfactory handling of Comment Reliable PDU fields and values.Unit tests for CoordinateConversions utility class.Manually constructed tests for many object types.Unit tests for satisfactory creation of all PDU objects.Unit tests for satisfactory handling of Create Entity PDU fields and values.Unit tests for satisfactory handling of Create Entity Reliable PDU fields and values.Unit tests for satisfactory handling of Data PDU fields and values.Unit tests for DataQuery PDU fields and values.Unit tests for satisfactory handling of Data Query PDU fields and values.Unit tests for satisfactory handling of Data Query Reliable PDU fields and values.Unit tests for satisfactory handling of Data Reliable PDU fields and values.Unit tests for DeadReckoningParameters data structure.Unit tests for satisfactory handling of Designator PDU fields and values.Unit tests for satisfactory handling of Detonation PDU fields and values.Unit tests for satisfactory handling of Directed Energy Fire PDU fields and values.Unit tests for DisChannel utility class.Unit tests for DisTime utility class.Unit tests for satisfactory handling of Electromagnetic Emission PDU fields and values.Unit tests for EntityBodyCoordinates spatial utility class.Unit tests for satisfactory handling of Entity Damage Status PDU fields and values.Unit tests for EntityID data structure.Unit tests for EntityMarking data structure.Unit tests for satisfactory handling of Entity State PDU (ESPDU) fields and values.Unit tests for satisfactory handling of Entity State Update PDU fields and values.Unit tests for EntityType data structure.Unit tests for satisfactory handling of Environmental Process PDU fields and values.Unit tests for EulerAngles data structure.Unit tests for EulerConversions utility class.Unit tests for EventIdentifier data structure.Unit tests for satisfactory handling of Event Report PDU fields and values.Unit tests for satisfactory handling of Event Report Reliable PDU 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.Unit tests for FixedDatum data structure.Unit tests for satisfactory handling of Gridded Data PDU fields and values.Unit tests for satisfactory handling of Information Operations Action PDU fields and values.Unit tests for satisfactory handling of Information Operations Report PDU fields and values.Unit tests for satisfactory handling of Intercom Control PDU fields and values.Unit tests for satisfactory handling of Intercom Signal PDU fields and values.Unit tests for satisfactory handling of IsGroupOf PDU fields and values.Unit tests for satisfactory handling of IsPartOf PDU fields and values.EntityType is instantiated with a default Domain of PlatformDomain-OTHER which causes issues down the road with similar enum values of other Domain typesUnit tests for satisfactory handling of Linear Object State PDU fields and values.Unit tests for satisfactory handling of Live Entity Detonation PDU fields and values.Unit tests for satisfactory handling of Live Entity Fire PDU fields and values.Unit tests for marshalling enumeration fields and values.Unit tests for Matrix3f legacy math class.Unit tests for Matrix4f legacy math class.Unit tests for satisfactory handling of Minefield Data PDU fields and values.Unit tests for satisfactory handling of Minefield Query PDU fields and values.Unit tests for satisfactory handling of Minefield Response NACK PDU fields and values.Unit tests for satisfactory handling of Minefield State PDU fields and values.Unit tests for ModulationType data structure.Unit tests for MunitionDescriptor data structure.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.Extended unit tests for PduFactory utility class.Unit tests for satisfactory factory creation of each PDU class.Unit tests for PduRecorder utility class.Abstract superclass for PDU testing, containing shared methods.Unit tests for satisfactory handling of Point Object State PDU fields and values.Unit tests for Quaternion legacy math class.Unit tests for RangeCoordinates spatial utility class.Unit tests for satisfactory handling of Receiver PDU fields and values.Unit tests for satisfactory handling of Record Query Reliable PDU fields and values.Unit tests for satisfactory handling of Record Reliable PDU fields and values.Unit tests for satisfactory handling of Remove Entity PDU fields and values.Unit tests for satisfactory handling of Remove Entity Reliable PDU fields and values.Unit tests for satisfactory handling of Repair Complete PDU fields and values.Unit tests for satisfactory handling of Repair Response PDU fields and values.Unit tests for satisfactory handling of Resupply Cancel PDU fields and values.Unit tests for satisfactory handling of Resupply Offer PDU fields and values.Unit tests for satisfactory handling of Resupply Received PDU fields and values.Unit tests for satisfactory handling of SEES (Supplemental Emission Entity State) PDU fields and values.Unit tests for satisfactory handling of Service Request PDU fields and values.Unit tests for satisfactory handling of Set Data PDU fields and values.Unit tests for satisfactory handling of Set Data Reliable PDU fields and values.Unit tests for satisfactory handling of Set Record Reliable PDU fields and values.This is an important unit test that examines the validity of two special-case signal PDUs.Unit tests for SimulationAddress data structure.Unit tests for SimulationManager utility class.Unit tests for satisfactory handling of Start/Resume PDU fields and values.Unit tests for satisfactory handling of Start/Resume Reliable PDU fields and values.Unit tests for satisfactory handling of Stop/Freeze PDU fields and values.Unit tests for satisfactory handling of Stop/Freeze Reliable PDU fields and values.Unit tests for satisfactory handling of Transfer Ownership PDU fields and values.Unit tests for satisfactory handling of Transmitter PDU fields and values.Unit tests for satisfactory handling of TSPI (Time Space Position Information) PDU fields and values.Unit tests for satisfactory handling of Underwater Acoustic PDU fields and values.Unit tests for VariableDatum data structure.Unit tests for Vec3f legacy math class.Unit tests for Vec4f legacy math class.Unit tests for Vector3Double data structure.Unit tests for Vector3Float data structure.Unit tests for X3dCoordinates data holder class.Unit tests for X3dCreateLineSet utility class.Unit tests for satisfactory filtering and creation of X3D interpolator values from a series of ESPDU track points.Unit tests for X3dSlidingWindowCompression utility class.