use of org.apache.kafka.streams.processor.internals.testutil.LogCaptureAppender in project kafka by apache.
the class StateDirectoryTest method shouldNotCreateBaseDirectory.
@Test
public void shouldNotCreateBaseDirectory() throws IOException {
try (final LogCaptureAppender appender = LogCaptureAppender.createAndRegister(StateDirectory.class)) {
initializeStateDirectory(false, false);
assertThat(stateDir.exists(), is(false));
assertThat(appDir.exists(), is(false));
assertThat(appender.getMessages(), not(hasItem(containsString("Error changing permissions for the state or base directory"))));
}
}
Aggregations