Skip to content

Commit

Permalink
correct references to event listener
Browse files Browse the repository at this point in the history
  • Loading branch information
talebb committed Jan 8, 2018
1 parent 8498331 commit 58e906f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions replay-tool-it/integration-test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@
<artifactItems>
<artifactItem>
<groupId>uk.gov.justice.framework.tools</groupId>
<artifactId>framework-tools-test-listener</artifactId>
<version>${framework-tools-test-listener.version}</version>
<artifactId>it-example-listener</artifactId>
<version>${it-example-listener.version}</version>
<type>war</type>
<overWrite>true</overWrite>
<outputDirectory>${project.basedir}/target/test-classes</outputDirectory>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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);

Expand Down Expand Up @@ -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!");
Expand All @@ -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 = "";

Expand Down
2 changes: 1 addition & 1 deletion replay-tool-it/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</modules>

<properties>
<framework-tools-test-listener.version>1.0.0</framework-tools-test-listener.version>
<it-example-listener.version>1.0.0</it-example-listener.version>
</properties>

<artifactId>framework-tools-test</artifactId>
Expand Down

0 comments on commit 58e906f

Please sign in to comment.