This commit is contained in:
Phillip Webb
2014-10-06 10:26:12 -07:00
parent e130c00e6c
commit 9dfbc25eaa
4 changed files with 41 additions and 19 deletions

View File

@@ -67,7 +67,9 @@ public class ApplicationPidListenerTests {
System.setProperty("PIDFILE", this.temporaryFolder.newFile().getAbsolutePath());
ApplicationPidListener listener = new ApplicationPidListener(file);
listener.onApplicationEvent(EVENT);
assertThat(FileCopyUtils.copyToString(new FileReader(System.getProperty("PIDFILE"))), not(isEmptyString()));
assertThat(
FileCopyUtils.copyToString(new FileReader(System.getProperty("PIDFILE"))),
not(isEmptyString()));
}
}