InternalLoggerFactory { public static InternalLogger getInstance(Class<?> clazz) { return getInstance(clazz.getName()); }  static InternalLoggerFactory getDefaultFactory(); static void setDefaultFactory(InternalLoggerFactory defaultFactory); static InternalLogger getInstance(Class<?> clazz); static InternalLogger getInstance(String name);  }
@Test public void testIsTraceEnabled() { when(mockLogger.isTraceEnabled()).thenReturn(true); InternalLogger logger = InternalLoggerFactory.getInstance("mock"); assertTrue(logger.isTraceEnabled()); verify(mockLogger).isTraceEnabled(); }
@Test public void testIsDebugEnabled() { when(mockLogger.isDebugEnabled()).thenReturn(true); InternalLogger logger = InternalLoggerFactory.getInstance("mock"); assertTrue(logger.isDebugEnabled()); verify(mockLogger).isDebugEnabled(); }
@Test public void testIsInfoEnabled() { when(mockLogger.isInfoEnabled()).thenReturn(true); InternalLogger logger = InternalLoggerFactory.getInstance("mock"); assertTrue(logger.isInfoEnabled()); verify(mockLogger).isInfoEnabled(); }
@Test public void testIsWarnEnabled() { when(mockLogger.isWarnEnabled()).thenReturn(true); InternalLogger logger = InternalLoggerFactory.getInstance("mock"); assertTrue(logger.isWarnEnabled()); verify(mockLogger).isWarnEnabled(); }
@Test public void testIsErrorEnabled() { when(mockLogger.isErrorEnabled()).thenReturn(true); InternalLogger logger = InternalLoggerFactory.getInstance("mock"); assertTrue(logger.isErrorEnabled()); verify(mockLogger).isErrorEnabled(); }
@Test public void testTrace() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.trace("a"); verify(mockLogger).trace("a"); }
@Test public void testTraceWithException() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.trace("a", e); verify(mockLogger).trace("a", e); }
@Test public void testDebug() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.debug("a"); verify(mockLogger).debug("a"); }
@Test public void testDebugWithException() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.debug("a", e); verify(mockLogger).debug("a", e); }
@Test public void testInfo() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.info("a"); verify(mockLogger).info("a"); }
@Test public void testInfoWithException() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.info("a", e); verify(mockLogger).info("a", e); }
@Test public void testWarn() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.warn("a"); verify(mockLogger).warn("a"); }
@Test public void testWarnWithException() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.warn("a", e); verify(mockLogger).warn("a", e); }
@Test public void testError() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.error("a"); verify(mockLogger).error("a"); }
@Test public void testErrorWithException() { final InternalLogger logger = InternalLoggerFactory.getInstance("mock"); logger.error("a", e); verify(mockLogger).error("a", e); }