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
9af05edc
"...git@gitlab.nps.edu:Savage/NetworkedGraphicsMV3500.git" did not exist on "db13ae60969cc67805540f47845a5bb2240e2781"
Commit
9af05edc
authored
4 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
renames and comments for clarity
parent
3468e7ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/edu/nps/moves/dis7/CommentPdusTest.java
+1
-2
1 addition, 2 deletions
test/edu/nps/moves/dis7/CommentPdusTest.java
test/edu/nps/moves/dis7/PduTest.java
+6
-4
6 additions, 4 deletions
test/edu/nps/moves/dis7/PduTest.java
with
7 additions
and
6 deletions
test/edu/nps/moves/dis7/CommentPdusTest.java
+
1
−
2
View file @
9af05edc
...
...
@@ -5,7 +5,6 @@
package
edu.nps.moves.dis7
;
import
edu.nps.moves.dis7.enumerations.VariableRecordType
;
import
edu.nps.moves.dis7.pdus.CommentPdu
;
import
edu.nps.moves.dis7.pdus.Pdu
;
import
edu.nps.moves.dis7.utilities.DisThreadedNetworkInterface
;
import
edu.nps.moves.dis7.utilities.PduFactory
;
...
...
@@ -74,7 +73,7 @@ public class CommentPdusTest
* @param newPdu PDU of interest */
private
void
testOne
(
Pdu
newPdu
)
{
sendPdu
(
newPdu
);
//
will wait a while
sendPdu
(
newPdu
);
//
send to self, then wait a while, then return receivedPdu
assertTrue
(
receivedPdu
!=
null
,
"No response from network receiver"
);
String
marshallMismatchMessage
=
...
...
This diff is collapsed.
Click to expand it.
test/edu/nps/moves/dis7/PduTest.java
+
6
−
4
View file @
9af05edc
...
...
@@ -94,10 +94,12 @@ abstract public class PduTest
}
/**
* Handler
* Handler that passes PDU to DIS network interface for marshalling (serialization),
* which then sends IEEE Standard (binary) PDU to self, which is then read separately
* for unmarshalling (deserialization) further unit testing.
* @param createdPdu new PDU of interest
*/
protected
void
sendPdu
(
Pdu
createdPdu
)
protected
void
send
IeeeStandard
Pdu
(
Pdu
createdPdu
)
{
try
{
...
...
@@ -106,7 +108,7 @@ abstract public class PduTest
}
catch
(
InterruptedException
ex
)
{
System
.
err
.
println
(
this
.
getClass
().
getName
()
+
".sendPdu(Pdu createdPdu), error sending Multicast: "
+
ex
.
getLocalizedMessage
());
System
.
err
.
println
(
this
.
getClass
().
getName
()
+
".send
IeeeStandard
Pdu(Pdu createdPdu), error sending Multicast: "
+
ex
.
getLocalizedMessage
());
System
.
exit
(
1
);
}
}
...
...
@@ -140,7 +142,7 @@ abstract public class PduTest
{
String
TEST_SUITE_WARNING
=
" (TODO note that test works standalone but mysteriously fails as part of project test suite)"
;
sendPdu
(
createdPdu
);
//
will
wait a while, then return receivedPdu
send
IeeeStandard
Pdu
(
createdPdu
);
//
send to self, then
wait a while, then return receivedPdu
assertTrue
(
receivedPdu
!=
null
,
"No response from network receive after "
+
getThreadSleepInterval
()
+
" msec"
+
TEST_SUITE_WARNING
);
...
...
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