### Question:
RotateLogListener extends SimpleLogListener implements Configurable, Destroyable { protected synchronized void closeLogFile() throws IOException { p.println ("</logger>"); if (f != null) f.close(); f = null; } 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 testCloseLogFile() throws Throwable { RotateLogListener rotateLogListener = new RotateLogListener(); rotateLogListener.closeLogFile(); assertNull(rotateLogListener.f, "rotateLogListener.f"); }