summaryrefslogtreecommitdiffstats
path: root/models-sim/policy-models-simulators/src
diff options
context:
space:
mode:
authorRam Krishna Verma <ram_krishna.verma@bell.ca>2021-09-20 10:35:19 -0400
committerRam Krishna Verma <ram_krishna.verma@bell.ca>2021-09-20 10:35:22 -0400
commit72f56e3460484a922f0bd19b9ef3eda868b34f6c (patch)
treec6968f87d35d9ef3813aa2d55fbc4161b13fe7ea /models-sim/policy-models-simulators/src
parent068aea18d2eb95d27be5c5763835d6974d6df85a (diff)
Revert ignoring tests in models
Reverting ignoring of tests in models as the staging job has been marked to skip tests. Issue-ID: POLICY-3587 Change-Id: Ia5946d3b9402ba7810815e73eb207ac5c57a6c74 Signed-off-by: Ram Krishna Verma <ram_krishna.verma@bell.ca>
Diffstat (limited to 'models-sim/policy-models-simulators/src')
-rw-r--r--models-sim/policy-models-simulators/src/test/java/org/onap/policy/models/simulators/MainTest.java14
1 files changed, 0 insertions, 14 deletions
diff --git a/models-sim/policy-models-simulators/src/test/java/org/onap/policy/models/simulators/MainTest.java b/models-sim/policy-models-simulators/src/test/java/org/onap/policy/models/simulators/MainTest.java
index dc3cc2672..e1517f3a8 100644
--- a/models-sim/policy-models-simulators/src/test/java/org/onap/policy/models/simulators/MainTest.java
+++ b/models-sim/policy-models-simulators/src/test/java/org/onap/policy/models/simulators/MainTest.java
@@ -43,7 +43,6 @@ import javax.ws.rs.core.Response;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.BeforeClass;
-import org.junit.Ignore;
import org.junit.Test;
import org.onap.policy.common.endpoints.event.comm.bus.internal.BusTopicParams;
import org.onap.policy.common.endpoints.http.client.HttpClient;
@@ -66,7 +65,6 @@ public class MainTest {
/**
* Saves system properties.
*/
- @Ignore
@BeforeClass
public static void setUpBeforeClass() throws IOException, InterruptedException {
savedValues = new HashMap<>();
@@ -92,7 +90,6 @@ public class MainTest {
/**
* Restores system properties.
*/
- @Ignore
@AfterClass
public static void tearDownAfterClass() {
for (Entry<String, String> ent : savedValues.entrySet()) {
@@ -107,7 +104,6 @@ public class MainTest {
/**
* Shuts down the simulator instance.
*/
- @Ignore
@After
public void tearDown() {
Main main = Main.getInstance();
@@ -116,7 +112,6 @@ public class MainTest {
}
}
- @Ignore
@Test
public void testConstructor() throws Exception {
assertThatIllegalArgumentException().isThrownBy(() -> new Main("invalidDmaapProvider.json"))
@@ -127,7 +122,6 @@ public class MainTest {
* Verifies that all of the simulators are brought up and that HTTPS works with at
* least one of them.
*/
- @Ignore
@Test
public void testMain() throws Exception {
Main.main(new String[0]);
@@ -144,7 +138,6 @@ public class MainTest {
checkAai();
}
- @Ignore
@Test
public void testMainMinimalParameters() {
Main.main(new String[] {"minParameters.json"});
@@ -167,7 +160,6 @@ public class MainTest {
/**
* Tests readParameters() when the file cannot be found.
*/
- @Ignore
@Test
public void testReadParametersNoFile() {
assertThatIllegalArgumentException().isThrownBy(() -> new Main("missing-file.json"))
@@ -177,7 +169,6 @@ public class MainTest {
/**
* Tests readParameters() when the json cannot be decoded.
*/
- @Ignore
@Test
public void testReadParametersInvalidJson() throws CoderException {
Coder coder = mock(Coder.class);
@@ -194,7 +185,6 @@ public class MainTest {
/**
* Tests buildRestServer() when the server port is not open.
*/
- @Ignore
@Test
public void testBuildRestServerNotOpen() {
HttpServletServer server = mock(HttpServletServer.class);
@@ -217,7 +207,6 @@ public class MainTest {
/**
* Tests buildRestServer() when the port checker is interrupted.
*/
- @Ignore
@Test
public void testBuildRestServerInterrupted() throws InterruptedException {
HttpServletServer server = mock(HttpServletServer.class);
@@ -256,7 +245,6 @@ public class MainTest {
/**
* Tests buildTopicServer() when the provider class is invalid.
*/
- @Ignore
@Test
public void testBuildTopicServerInvalidProvider() {
assertThatThrownBy(() -> new Main("invalidTopicServer.json").start())
@@ -266,7 +254,6 @@ public class MainTest {
/**
* Tests buildTopicServer() when the sink is missing.
*/
- @Ignore
@Test
public void testBuildTopicServerNoSink() {
assertThatThrownBy(() -> new Main("missingSink.json").start())
@@ -276,7 +263,6 @@ public class MainTest {
/**
* Tests buildTopicServer() when the sink is missing.
*/
- @Ignore
@Test
public void testBuildTopicServerNoSource() {
assertThatThrownBy(() -> new Main("missingSource.json").start())