Skip to content
Snippets Groups Projects
Commit 6d6efa72 authored by Brutzman, Don's avatar Brutzman, Don
Browse files

initial ENTITY_STATE unit tests

parent 81d0054e
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,19 @@ public class OpenDisPduSender {
switch (pdu) {
case ENTITY_STATE:
aPdu = new EntityStatePdu();
// TODO continue to add unit tests
EntityStatePdu entityStatePdu = new EntityStatePdu();
Marking espduMarking = new Marking();
espduMarking.setCharactersString("Testing 123");
// TODO libary should warn if > 11 characters
entityStatePdu.setMarking(espduMarking);
EntityID espduEntityID = new EntityID();
espduEntityID.setSite(1);
espduEntityID.setApplication(2);
espduEntityID.setEntity(3);
entityStatePdu.setEntityID(espduEntityID);
// TODO consider adding utility methods to Open-DIS
aPdu = entityStatePdu;
break;
case COMMENT:
......@@ -115,7 +127,7 @@ public class OpenDisPduSender {
break;
default:
System.out.print("PDU of type " + pdu + " not created or sent ");
System.out.print("PDU of type " + pdu + " not supported, created or sent ");
System.out.println();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment