RuntimeProvider { public static String getCallerClassName(final int depth) { return stripAnonymousPart(dialect.getCallerClassName(depth + 1)); } private  RuntimeProvider(); static boolean isAndroid(); static ClassLoader getClassLoader(); static String getDefaultWriter(); static long getProcessId(); static Timestamp getStartTime(); static String getCallerClassName(final int depth); static String getCallerClassName(final String loggerClassName); static StackTraceElement getCallerStackTraceElement(final int depth); static StackTraceElement getCallerStackTraceElement(final String loggerClassName); static Timestamp createTimestamp(); static TimestampFormatter createTimestampFormatter(final String pattern, final Locale locale);  }
@Test public void callerClassNameByIndex() { assertThat(RuntimeProvider.getCallerClassName(1)).isEqualTo(RuntimeProviderTest.class.getName()); }
@Test public void callerClassNameBySuccessor() { assertThat(RuntimeProvider.getCallerClassName(RuntimeProvider.class.getName())).isEqualTo(RuntimeProviderTest.class.getName()); }
@Test public void anonymousCallerClassName() { new Object() { { assertThat(RuntimeProvider.getCallerClassName(1)).isEqualTo(RuntimeProviderTest.class.getName()); } }; }