AppCenterLog { public static void verbose(@NonNull String tag, @NonNull String message) { if (sLogLevel <= Log.VERBOSE) { Log.v(tag, message); } }  @IntRange(from = VERBOSE, to = NONE) static int getLogLevel(); static void setLogLevel(@IntRange(from = VERBOSE, to = NONE) int logLevel); static void verbose(@NonNull String tag, @NonNull String message); @SuppressWarnings("SameParameterValue") static void verbose(@NonNull String tag, @NonNull String message, Throwable throwable); static void debug(@NonNull String tag, @NonNull String message); static void debug(@NonNull String tag, @NonNull String message, Throwable throwable); static void info(@NonNull String tag, @NonNull String message); @SuppressWarnings("SameParameterValue") static void info(@NonNull String tag, @NonNull String message, Throwable throwable); static void warn(@NonNull String tag, @NonNull String message); static void warn(@NonNull String tag, @NonNull String message, Throwable throwable); static void error(@NonNull String tag, @NonNull String message); static void error(@NonNull String tag, @NonNull String message, Throwable throwable); @SuppressWarnings("WeakerAccess") static void logAssert(@NonNull String tag, @NonNull String message); @SuppressWarnings({"WeakerAccess", "SameParameterValue"}) static void logAssert(@NonNull String tag, @NonNull String message, Throwable throwable); static final String LOG_TAG; static final int NONE; }
@Test public void verbose() { AppCenter.setLogLevel(Log.VERBOSE); assertEquals(AppCenter.getLogLevel(), AppCenterLog.getLogLevel()); callLogs(); verifyVerbose(times(1)); verifyDebug(times(1)); verifyInfo(times(1)); verifyWarn(times(1)); verifyError(times(1)); verifyAssert(times(1)); }