Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
3006a4c2
Commit
3006a4c2
authored
Sep 30, 2017
by
Marc Schiller
Browse files
Fixed SiSScope.
parent
9f99f93c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/component/sis/tests/SiSRequestTests.java
View file @
3006a4c2
...
...
@@ -38,8 +38,8 @@ import org.junit.runners.MethodSorters;
import
de.tudarmstadt.maki.simonstrator.api.common.graph.INodeID
;
import
de.tudarmstadt.maki.simonstrator.api.component.sis.SiSInfoProperties
;
import
de.tudarmstadt.maki.simonstrator.api.component.sis.SiSInfoProperties.SiSScope
;
import
de.tudarmstadt.maki.simonstrator.api.component.sis.SiSRequest
;
import
de.tudarmstadt.maki.simonstrator.api.component.sis.SiSScope
;
@FixMethodOrder
(
MethodSorters
.
NAME_ASCENDING
)
public
class
SiSRequestTests
{
...
...
@@ -104,20 +104,6 @@ public class SiSRequestTests {
assertEquals
(
this
.
getClass
(),
req
.
getSourceComponent
());
}
@Test
public
void
test004_requestCreationRegional
()
{
long
timeout
=
rand
.
nextLong
();
long
maxInformationAge
=
rand
.
nextLong
();
SiSRequest
req
=
new
SiSRequest
(
timeout
,
maxInformationAge
,
SiSScope
.
REGIONAL
,
this
.
getClass
());
assertEquals
(
timeout
,
req
.
getTimeout
());
assertEquals
(
maxInformationAge
,
req
.
getMaxInformationAge
());
assertEquals
(
SiSScope
.
REGIONAL
,
req
.
getScope
());
assertEquals
(
this
.
getClass
(),
req
.
getSourceComponent
());
}
@Test
public
void
test005_requestCreationSet
()
{
...
...
@@ -148,11 +134,6 @@ public class SiSRequestTests {
new
SiSRequest
(
0
,
0
,
SiSScope
.
NODE_LOCAL
,
new
HashSet
<>(),
this
.
getClass
());
}
@Test
(
expected
=
java
.
lang
.
AssertionError
.
class
)
public
void
test008_requestCreationExceptionRegional
()
{
new
SiSRequest
(
0
,
0
,
SiSScope
.
REGIONAL
,
new
HashSet
<>(),
this
.
getClass
());
}
@Test
(
expected
=
java
.
lang
.
AssertionError
.
class
)
public
void
test009_requestCreationExceptionSet
()
{
new
SiSRequest
(
0
,
0
,
SiSScope
.
SET
,
this
.
getClass
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment