|
|
|
@ -111,6 +111,11 @@ public class DefaultLaunchScriptTests {
|
|
|
|
|
assertThatPlaceholderCanBeReplaced("confFolder");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void stopWaitTimeCanBeReplaced() throws Exception {
|
|
|
|
|
assertThatPlaceholderCanBeReplaced("stopWaitTime");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void defaultForUseStartStopDaemonIsTrue() throws Exception {
|
|
|
|
|
DefaultLaunchScript script = new DefaultLaunchScript(null, null);
|
|
|
|
@ -125,6 +130,13 @@ public class DefaultLaunchScriptTests {
|
|
|
|
|
assertThat(content).contains("MODE=\"auto\"");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void defaultForStopWaitTimeIs60() throws Exception {
|
|
|
|
|
DefaultLaunchScript script = new DefaultLaunchScript(null, null);
|
|
|
|
|
String content = new String(script.toByteArray());
|
|
|
|
|
assertThat(content).contains("STOP_WAIT_TIME=60");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Test
|
|
|
|
|
public void loadFromFile() throws Exception {
|
|
|
|
|
File file = this.temporaryFolder.newFile();
|
|
|
|
|