Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NetworkedGraphicsMV3500
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Savage
NetworkedGraphicsMV3500
Commits
49f16b76
Commit
49f16b76
authored
5 years ago
by
J. M. Bailey
Browse files
Options
Downloads
Patches
Plain Diff
Method rename for clarity
parent
e52e3aac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/edu/nps/moves/dis7/BitFieldRoundTripTest.java
+19
-20
19 additions, 20 deletions
test/edu/nps/moves/dis7/BitFieldRoundTripTest.java
with
19 additions
and
20 deletions
test/edu/nps/moves/dis7/BitFieldRoundTripTest.java
+
19
−
20
View file @
49f16b76
...
@@ -7,7 +7,6 @@ package edu.nps.moves.dis7;
...
@@ -7,7 +7,6 @@ package edu.nps.moves.dis7;
import
edu.nps.moves.dis7.enumerations.AppearanceCamouflageType
;
import
edu.nps.moves.dis7.enumerations.AppearanceCamouflageType
;
import
edu.nps.moves.dis7.enumerations.ForceID
;
import
edu.nps.moves.dis7.enumerations.ForceID
;
import
edu.nps.moves.dis7.enumerations.LandPlatformAppearance
;
import
edu.nps.moves.dis7.enumerations.LandPlatformAppearance
;
import
edu.nps.moves.dis7.enumerations.VariableRecordType
;
import
edu.nps.moves.dis7.util.DisNetworking
;
import
edu.nps.moves.dis7.util.DisNetworking
;
import
edu.nps.moves.dis7.util.PduFactory
;
import
edu.nps.moves.dis7.util.PduFactory
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -48,7 +47,7 @@ public class BitFieldRoundTripTest
...
@@ -48,7 +47,7 @@ public class BitFieldRoundTripTest
private
Object
waiter
=
new
Object
();
private
Object
waiter
=
new
Object
();
@Test
@Test
public
void
testRoundTrip
()
public
void
test
BitField
RoundTrip
()
{
{
PduFactory
factory
=
new
PduFactory
();
PduFactory
factory
=
new
PduFactory
();
...
@@ -114,27 +113,27 @@ public class BitFieldRoundTripTest
...
@@ -114,27 +113,27 @@ public class BitFieldRoundTripTest
System
.
out
.
println
(
s
);
System
.
out
.
println
(
s
);
System
.
out
.
println
(
"Alternative EntityType: "
+
espdu
.
alternativeEntityType
.
toString
());
System
.
out
.
println
(
"Alternative EntityType: "
+
espdu
.
alternativeEntityType
.
toString
());
System
.
out
.
println
(
"Entity Capabilities: "
+
espdu
.
capabilities
.
toString
());
System
.
out
.
println
(
"Entity Capabilities: "
+
espdu
.
capabilities
.
toString
());
System
.
out
.
println
(
""
+
espdu
.
getDeadReckoningParameters
().
toString
());
System
.
out
.
println
(
"
Dead Reckoning Parameters:
"
+
espdu
.
getDeadReckoningParameters
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getEntityAppearance
());
System
.
out
.
println
(
"
Entity Appearance:
"
+
espdu
.
getEntityAppearance
());
System
.
out
.
println
(
""
+
espdu
.
getEntityID
().
toString
());
System
.
out
.
println
(
"
Entity ID:
"
+
espdu
.
getEntityID
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getEntityLinearVelocity
().
toString
());
System
.
out
.
println
(
"
Entity Linear Velocity:
"
+
espdu
.
getEntityLinearVelocity
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getEntityLocation
().
toString
());
System
.
out
.
println
(
"
Entity Location:
"
+
espdu
.
getEntityLocation
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getEntityOrientation
().
toString
());
System
.
out
.
println
(
"
Entity Orientation:
"
+
espdu
.
getEntityOrientation
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getEntityType
().
toString
());
System
.
out
.
println
(
"
Entity Type:
"
+
espdu
.
getEntityType
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getExerciseID
());
System
.
out
.
println
(
"
Exercise ID:
"
+
espdu
.
getExerciseID
());
System
.
out
.
println
(
""
+
espdu
.
getForceId
().
toString
());
System
.
out
.
println
(
"
Force ID:
"
+
espdu
.
getForceId
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getLength
());
System
.
out
.
println
(
"
Length:
"
+
espdu
.
getLength
());
System
.
out
.
println
(
""
+
espdu
.
getMarking
().
toString
());
System
.
out
.
println
(
"
Marking:
"
+
espdu
.
getMarking
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getPduStatus
().
toString
());
System
.
out
.
println
(
"
Pdu Status:
"
+
espdu
.
getPduStatus
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getPduType
().
toString
());
System
.
out
.
println
(
"
Pdu Type:
"
+
espdu
.
getPduType
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getProtocolFamily
().
toString
());
System
.
out
.
println
(
"
Protocol Family:
"
+
espdu
.
getProtocolFamily
().
toString
());
System
.
out
.
println
(
""
+
espdu
.
getProtocolVersion
());
System
.
out
.
println
(
"
Protocol Version:
"
+
espdu
.
getProtocolVersion
());
System
.
out
.
println
(
""
+
espdu
.
getTimestamp
());
System
.
out
.
println
(
"
Timestamp:
"
+
espdu
.
getTimestamp
());
System
.
out
.
println
(
""
+
espdu
.
getVariableParameters
().
toString
());
System
.
out
.
println
(
"
Variable Parameters:
"
+
espdu
.
getVariableParameters
().
toString
());
System
.
out
.
println
();
System
.
out
.
println
();
}
}
public
static
void
main
(
String
[]
args
)
public
static
void
main
(
String
[]
args
)
{
{
new
BitFieldRoundTripTest
().
testRoundTrip
();
new
BitFieldRoundTripTest
().
test
BitField
RoundTrip
();
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment