[Fix] Fixed test due to message change

This commit is contained in:
Robert von Burg 2019-09-04 13:24:26 +02:00
parent f64ffa7651
commit 704dc2b702
1 changed files with 3 additions and 3 deletions

View File

@ -35,7 +35,7 @@ import org.junit.Test;
/** /**
* @author Robert von Burg <eitch@eitchnet.ch> * @author Robert von Burg <eitch@eitchnet.ch>
*/ */
public class LockingTest { public class ServiceLockingTest {
private static final String RUNTIME_PATH = "target/lockingTest/"; //$NON-NLS-1$ private static final String RUNTIME_PATH = "target/lockingTest/"; //$NON-NLS-1$
private static final String CONFIG_SRC = "src/test/resources/transienttest"; //$NON-NLS-1$ private static final String CONFIG_SRC = "src/test/resources/transienttest"; //$NON-NLS-1$
@ -111,7 +111,7 @@ public class LockingTest {
for (int i = 1; i < runners.size(); i++) { for (int i = 1; i < runners.size(); i++) {
ServiceResult result = runners.get(i).getResult(); ServiceResult result = runners.get(i).getResult();
assertEquals(ServiceResultState.EXCEPTION, result.getState()); assertEquals(ServiceResultState.EXCEPTION, result.getState());
assertThat(result.getMessage(), containsString("Failed to acquire lock after")); assertThat(result.getMessage(), containsString("failed to acquire lock after"));
} }
} }
@ -158,7 +158,7 @@ public class LockingTest {
@Override @Override
public void run() { public void run() {
while (!LockingTest.this.run) { while (!ServiceLockingTest.this.run) {
// spin lock // spin lock
} }