diff --git a/replay-tool-it/integration-test/pom.xml b/replay-tool-it/integration-test/pom.xml index 7a75a84..48c7cce 100644 --- a/replay-tool-it/integration-test/pom.xml +++ b/replay-tool-it/integration-test/pom.xml @@ -131,8 +131,8 @@ uk.gov.justice.framework.tools - framework-tools-test-listener - ${framework-tools-test-listener.version} + it-example-listener + ${it-example-listener.version} war true ${project.basedir}/target/test-classes diff --git a/replay-tool-it/integration-test/src/test/java/uk/gov/justice/framework/tools/replay/ReplayIntegrationIT.java b/replay-tool-it/integration-test/src/test/java/uk/gov/justice/framework/tools/replay/ReplayIntegrationIT.java index 4b5005e..fda7372 100644 --- a/replay-tool-it/integration-test/src/test/java/uk/gov/justice/framework/tools/replay/ReplayIntegrationIT.java +++ b/replay-tool-it/integration-test/src/test/java/uk/gov/justice/framework/tools/replay/ReplayIntegrationIT.java @@ -28,6 +28,7 @@ public class ReplayIntegrationIT { private static final TestProperties TEST_PROPERTIES = new TestProperties("test.properties"); private static final int EVENT_COUNT = 5; + private static final long EXECUTION_TIMEOUT = 60L; private static TestEventLogRepository EVENT_LOG_REPOSITORY; @@ -52,7 +53,7 @@ public void tearDown() throws SQLException { cleanupDataSource(viewStoreDataSource, "test"); } - public void runCommand(final String command) throws Exception { + private void runCommand(final String command) throws Exception { final Process exec = Runtime.getRuntime().exec(command); @@ -87,7 +88,7 @@ public void runCommand(final String command) throws Exception { // determined by querying the ViewStore for associated records later. The above Thread should // kill the process inside 60 seconds but wait here and handle shutdown if things take // too long for some reason - boolean processTerminated = exec.waitFor(60L, TimeUnit.SECONDS); + boolean processTerminated = exec.waitFor(EXECUTION_TIMEOUT, TimeUnit.SECONDS); if (!processTerminated) { System.err.println("WildFly Swarm process failed to terminate after 60 seconds!"); @@ -111,7 +112,7 @@ private String createCommandToExecuteReplay() { final String replayJarLocation = getResource("framework-tools-replay*.jar"); final String standaloneDSLocation = getResource("standalone-ds.xml"); - final String listenerLocation = getResource("framework-tools-test-listener*.war"); + final String listenerLocation = getResource("it-example-listener*.war"); String debug = ""; diff --git a/replay-tool-it/pom.xml b/replay-tool-it/pom.xml index 335e55c..40eda82 100644 --- a/replay-tool-it/pom.xml +++ b/replay-tool-it/pom.xml @@ -15,7 +15,7 @@ - 1.0.0 + 1.0.0 framework-tools-test