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
09b65442
Commit
09b65442
authored
3 years ago
by
Brutzman, Don
Browse files
Options
Downloads
Patches
Plain Diff
hide blocking mutex.acquire(), fixing test
parent
d67df41d
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/test/SignalPdusTest.java
+3
-3
3 additions, 3 deletions
test/edu/nps/moves/dis7/test/SignalPdusTest.java
test/edu/nps/moves/dis7/test/X3dInterpolatorsTest.java
+2
-2
2 additions, 2 deletions
test/edu/nps/moves/dis7/test/X3dInterpolatorsTest.java
with
5 additions
and
5 deletions
test/edu/nps/moves/dis7/test/SignalPdusTest.java
+
3
−
3
View file @
09b65442
...
@@ -109,7 +109,7 @@ public class SignalPdusTest {
...
@@ -109,7 +109,7 @@ public class SignalPdusTest {
@Test
@Test
@Order
(
1
)
@Order
(
1
)
public
void
testRoundTripNet
()
{
public
void
testRoundTripNet
()
{
System
.
out
.
println
(
"testRoundTripNet"
);
System
.
out
.
println
(
"testRoundTripNet
()
"
);
// Let's see how these unmarshall
// Let's see how these unmarshall
receivedPdus
.
forEach
(
pdu
->
{
receivedPdus
.
forEach
(
pdu
->
{
...
@@ -133,7 +133,7 @@ public class SignalPdusTest {
...
@@ -133,7 +133,7 @@ public class SignalPdusTest {
@Test
@Test
@Order
(
2
)
@Order
(
2
)
public
void
testRoundTripLog
()
throws
IOException
,
InterruptedException
{
public
void
testRoundTripLog
()
throws
IOException
,
InterruptedException
{
System
.
out
.
println
(
"testRoundTripLog"
);
System
.
out
.
println
(
"testRoundTripLog
()
"
);
mutex
.
acquire
();
mutex
.
acquire
();
Path
path
=
Path
.
of
(
"./pduLog"
);
Path
path
=
Path
.
of
(
"./pduLog"
);
...
@@ -149,7 +149,7 @@ public class SignalPdusTest {
...
@@ -149,7 +149,7 @@ public class SignalPdusTest {
}
}
});
});
mutex
.
acquire
();
//
mutex.acquire();
// TODO needed? appears to be unnecessarily blocking...
}
}
private
static
void
sleep
(
long
ms
)
{
private
static
void
sleep
(
long
ms
)
{
...
...
This diff is collapsed.
Click to expand it.
test/edu/nps/moves/dis7/test/X3dInterpolatorsTest.java
+
2
−
2
View file @
09b65442
...
@@ -29,7 +29,7 @@ public class X3dInterpolatorsTest {
...
@@ -29,7 +29,7 @@ public class X3dInterpolatorsTest {
@BeforeAll
@BeforeAll
public
static
void
setUpClass
()
throws
IOException
{
public
static
void
setUpClass
()
throws
IOException
{
System
.
out
.
println
(
"X3dInterpolatorsTest"
);
System
.
out
.
println
(
"X3dInterpolatorsTest
setUpClass()
"
);
}
}
@BeforeEach
@BeforeEach
...
@@ -51,7 +51,7 @@ public class X3dInterpolatorsTest {
...
@@ -51,7 +51,7 @@ public class X3dInterpolatorsTest {
@AfterEach
@AfterEach
public
void
tearDown
()
throws
InterruptedException
{
public
void
tearDown
()
throws
InterruptedException
{
mutex
.
acquire
();
//
mutex.acquire();
// TODO needed? appears to be unnecessarily blocking...
}
}
@Test
@Test
...
...
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