/** * Test that no unexpected Exceptions occur if {@link FileLogger#printLog(LogLevel, String, * String)} is called after {@link FileLogger#closeLog()} */ public void testCloseLog() throws Exception { FileLogger logger = new FileLogger(); logger.init(); // test the package-private methods to capture any exceptions that occur logger.doCloseLog(); logger.writeToLog("test2"); }