### Question:
RotateLogListener extends SimpleLogListener implements Configurable, Destroyable { public void logRotate () throws IOException { logRotate(false); } RotateLogListener(); void setConfiguration(Configuration cfg); synchronized LogEvent log(LogEvent ev); void logRotate(); synchronized void logRotate(boolean isStartup); void destroy(); static final int CHECK_INTERVAL; static final long DEFAULT_MAXSIZE; }### Answer:
@Test @Disabled("test causes problems, closes stdout") public void testLogRotateThrowsNullPointerException() throws Throwable { RotateLogListener rotateLogListener = new RotateLogListener(); try { rotateLogListener.logRotate(); fail("Expected NullPointerException to be thrown"); } catch (NullPointerException ex) { assertNull(rotateLogListener.f, "rotateLogListener.f"); assertNull(rotateLogListener.p, "rotateLogListener.p"); } }