Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ void testScript(final ScriptProcess script) throws InterruptedException, Timeout
boolean ok = stdout.contains("-Xmx16m") && !stdout.replaceFirst("-Xmx", "").contains("-Xmx");
Assert.assertTrue("Expected to find -Xmx16m in the JVM parameters for a server started with " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, ok);
Assert.assertFalse("Did not expect to find gc.log in the JVM parameters for a server started with " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, stdout.contains("gc.log"));
if ("--help".equals(arg) || "-h".equals(arg)) {
Assert.assertTrue("Expected help output containing 'Usage:' for " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, stdout.contains("Usage:"));
} else if ("-v".equals(arg) || "-V".equals(arg) || "--version".equals(arg)) {
Assert.assertTrue("Expected version output containing 'WildFly Core' for " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, stdout.contains("WildFly Core"));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,10 @@ void testScript(final ScriptProcess script) throws InterruptedException, Timeout
boolean ok = stdout.contains("-Xmx16m") && !stdout.replaceFirst("-Xmx", "").contains("-Xmx");
Assert.assertTrue("Expected to find -Xmx16m in the JVM parameters for a server started with " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, ok);
Assert.assertFalse("Did not expect to find gc.log in the JVM parameters for a server started with " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, stdout.contains("gc.log"));
if ("--help".equals(arg) || "-h".equals(arg)) {
Assert.assertTrue("Expected help output containing 'Usage:' for " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, stdout.contains("Usage:"));
} else if ("-v".equals(arg) || "-V".equals(arg) || "--version".equals(arg)) {
Assert.assertTrue("Expected version output containing 'WildFly Core' for " + script.getLastExecutedCmd() + "\nThe server output was: \n" + stdout, stdout.contains("WildFly Core"));
}
}
}
Loading