Use constant defined in super class.
@@ -163,8 +163,7 @@ public class DevTest extends BaseDevTest {
@Test
public void restartServerTest() throws Exception {
- String GENERATE = "Running liberty:generate-features";
- int runningGenerateCount = countOccurrences(GENERATE, logFile);
+ int runningGenerateCount = countOccurrences(RUNNING_GENERATE_FEATURES, logFile);
String RESTARTED = "The server has been restarted.";
int restartedCount = countOccurrences(RESTARTED, logFile);
writer.write("r\n"); // command to restart liberty
@@ -172,7 +171,7 @@ public class DevTest extends BaseDevTest {
assertTrue(verifyLogMessageExists(RESTARTED, 20000, ++restartedCount));
// not supposed to rerun generate features just because of a server restart
- assertTrue(verifyLogMessageExists(GENERATE, 2000, runningGenerateCount));
+ assertTrue(verifyLogMessageExists(RUNNING_GENERATE_FEATURES, 2000, runningGenerateCount));
}
@Test
