use of com.jezhumble.javasysmon.JavaSysMon in project gocd by gocd.
the class SubprocessLoggerTest method shouldNotLogAnythingWhenNoChildProcessesFound.
@Test
public void shouldNotLogAnythingWhenNoChildProcessesFound() {
JavaSysMon sysMon = mock(JavaSysMon.class);
logger = new SubprocessLogger(sysMon);
try (LogFixture log = logFixtureFor(SubprocessLogger.class, Level.ALL)) {
logger.run();
assertThat(log.allLogs(), is(""));
}
}
Aggregations