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

new package path edu.nps.moves.dis7.utilities.DisTime;

parent 45ac3bc4
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ package edu.nps.moves.dis7.test; ...@@ -6,6 +6,7 @@ package edu.nps.moves.dis7.test;
import edu.nps.moves.dis7.enumerations.Country; import edu.nps.moves.dis7.enumerations.Country;
import edu.nps.moves.dis7.pdus.Pdu; import edu.nps.moves.dis7.pdus.Pdu;
import edu.nps.moves.dis7.utilities.DisThreadedNetworkInterface; import edu.nps.moves.dis7.utilities.DisThreadedNetworkInterface;
import edu.nps.moves.dis7.utilities.DisTime;
import edu.nps.moves.dis7.utilities.PduFactory; import edu.nps.moves.dis7.utilities.PduFactory;
import edu.nps.moves.dis7.utilities.stream.PduPlayer; import edu.nps.moves.dis7.utilities.stream.PduPlayer;
import edu.nps.moves.dis7.utilities.stream.PduRecorder; import edu.nps.moves.dis7.utilities.stream.PduRecorder;
...@@ -74,7 +75,7 @@ public class AllPduRoundTripTest ...@@ -74,7 +75,7 @@ public class AllPduRoundTripTest
System.out.println ("*** AllPduRoundTripTest testRoundTripAllPdus() start..."); System.out.println ("*** AllPduRoundTripTest testRoundTripAllPdus() start...");
setupSenderRecorder(); setupSenderRecorder();
pduFactory = new PduFactory(Country.PHILIPPINES_PHL, (byte) 11, (byte) 22, (short) 33, PduFactory.TimestampStyle.IEEE_ABSOLUTE); pduFactory = new PduFactory(Country.PHILIPPINES_PHL, (byte) 11, (byte) 22, (short) 33, DisTime.TimestampStyle.IEEE_ABSOLUTE);
pdusSent.add(pduFactory.makeAcknowledgePdu()); pdusSent.add(pduFactory.makeAcknowledgePdu());
pdusSent.add(pduFactory.makeAcknowledgeReliablePdu()); pdusSent.add(pduFactory.makeAcknowledgeReliablePdu());
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
package edu.nps.moves.dis7.test; package edu.nps.moves.dis7.test;
import edu.nps.moves.dis7.enumerations.Country; import edu.nps.moves.dis7.enumerations.Country;
import edu.nps.moves.dis7.utilities.DisTime;
import edu.nps.moves.dis7.utilities.PduFactory; import edu.nps.moves.dis7.utilities.PduFactory;
import org.junit.jupiter.api.*; import org.junit.jupiter.api.*;
import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertNull;
...@@ -49,7 +50,7 @@ public class PduFactoryTest ...@@ -49,7 +50,7 @@ public class PduFactoryTest
Throwable ex = null; Throwable ex = null;
try { try {
//Arrays.stream(PduFactory.class.getDeclaredMethods()).forEach(m->System.out.println(m.getName())); //Arrays.stream(PduFactory.class.getDeclaredMethods()).forEach(m->System.out.println(m.getName()));
PduFactory fact = new PduFactory(Country.PHILIPPINES_PHL, (byte) 11, (byte) 22, (short) 33, PduFactory.TimestampStyle.IEEE_ABSOLUTE); PduFactory fact = new PduFactory(Country.PHILIPPINES_PHL, (byte) 11, (byte) 22, (short) 33, DisTime.TimestampStyle.IEEE_ABSOLUTE);
fact.makeAcknowledgePdu(); fact.makeAcknowledgePdu();
fact.makeAcknowledgeReliablePdu(); fact.makeAcknowledgeReliablePdu();
......
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