Commit 3006a4c2 authored by Marc Schiller's avatar Marc Schiller
Browse files

Fixed SiSScope.

parent 9f99f93c
......@@ -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());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment