From 11b174382125253acbbc4d9ac5a74dfcf29972bf Mon Sep 17 00:00:00 2001 From: terry-norbraten <tnorb@comcast.net> Date: Tue, 6 Oct 2020 22:24:06 -0700 Subject: [PATCH] double set of entityKind corrected --- test/edu/nps/moves/dis7/EntityStatePduTest.java | 2 +- test/edu/nps/moves/dis7/PduTest.java | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test/edu/nps/moves/dis7/EntityStatePduTest.java b/test/edu/nps/moves/dis7/EntityStatePduTest.java index df946af848..e7a49496d4 100644 --- a/test/edu/nps/moves/dis7/EntityStatePduTest.java +++ b/test/edu/nps/moves/dis7/EntityStatePduTest.java @@ -35,7 +35,7 @@ public class EntityStatePduTest extends PduTest // TODO test various alternate constructors and utility methods EntityType entityType = new EntityType() - .setEntityKind (EntityKind.PLATFORM).setEntityKind(EntityKind.PLATFORM) //(short) 1); // Platform (vs lifeform, munition, sensor, etc.); //(short) 1); // Platform (vs lifeform, munition, sensor, etc.) + .setEntityKind (EntityKind.PLATFORM) //(short) 1); // Platform (vs lifeform, munition, sensor, etc.); //(short) 1); // Platform (vs lifeform, munition, sensor, etc.) .setCountry (Country.UNITED_STATES_OF_AMERICA_USA) // 225 USA .setDomain (Domain.inst(PlatformDomain.LAND)) // Land (vs air, surface, subsurface, space) .setCategory ((byte) 1) // Tank diff --git a/test/edu/nps/moves/dis7/PduTest.java b/test/edu/nps/moves/dis7/PduTest.java index 493298a519..623cc104c4 100644 --- a/test/edu/nps/moves/dis7/PduTest.java +++ b/test/edu/nps/moves/dis7/PduTest.java @@ -133,6 +133,7 @@ abstract public class PduTest { receivedPdu = newPdu; } + /** * Initial common tests for fields in PDU header. * See <a href="https://en.wikipedia.org/wiki/Marshalling_(computer_science)" target="_blank">https://en.wikipedia.org/wiki/Marshalling_(computer_science)</a> @@ -169,6 +170,7 @@ abstract public class PduTest System.out.println("================================================================"); } } + /** * Final common tests of PDU characteristics after individual fields are checked. * See <a href="https://en.wikipedia.org/wiki/Marshalling_(computer_science)" target="_blank">https://en.wikipedia.org/wiki/Marshalling_(computer_science)</a> -- GitLab