@Test public void testE() { final Logger mockLogger = mock(Logger.class); PreferencesLogging.setLogger(mockLogger); PreferencesLogging.e(LOG_TAG, "message.error"); PreferencesLogging.e(LOG_TAG, "message.error", null); verify(mockLogger).e(LOG_TAG, "message.error"); verify(mockLogger).e(LOG_TAG, "message.error", null); verifyNoMoreInteractions(mockLogger); }
public static void e(@NonNull final String tag, @NonNull final String message) { logger.e(tag, message); }
PreferencesLogging { public static void e(@NonNull final String tag, @NonNull final String message) { logger.e(tag, message); } }
PreferencesLogging { public static void e(@NonNull final String tag, @NonNull final String message) { logger.e(tag, message); } private  PreferencesLogging(); }
PreferencesLogging { public static void e(@NonNull final String tag, @NonNull final String message) { logger.e(tag, message); } private  PreferencesLogging(); static void setLogger(@Nullable final Logger logger); @NonNull static Logger getLogger(); static void d(@NonNull final String tag, @NonNull final String message); static void d(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void v(@NonNull final String tag, @NonNull final String message); static void v(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void i(@NonNull final String tag, @NonNull final String message); static void i(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void w(@NonNull final String tag, @NonNull final String message); static void w(@NonNull final String tag, @Nullable final Throwable throwable); static void w(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void e(@NonNull final String tag, @NonNull final String message); static void e(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void wtf(@NonNull final String tag, @NonNull final String message); static void wtf(@NonNull final String tag, @Nullable final Throwable throwable); static void wtf(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); }
PreferencesLogging { public static void e(@NonNull final String tag, @NonNull final String message) { logger.e(tag, message); } private  PreferencesLogging(); static void setLogger(@Nullable final Logger logger); @NonNull static Logger getLogger(); static void d(@NonNull final String tag, @NonNull final String message); static void d(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void v(@NonNull final String tag, @NonNull final String message); static void v(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void i(@NonNull final String tag, @NonNull final String message); static void i(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void w(@NonNull final String tag, @NonNull final String message); static void w(@NonNull final String tag, @Nullable final Throwable throwable); static void w(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void e(@NonNull final String tag, @NonNull final String message); static void e(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable); static void wtf(@NonNull final String tag, @NonNull final String message); static void wtf(@NonNull final String tag, @Nullable final Throwable throwable); static void wtf(@NonNull final String tag, @NonNull final String message, @Nullable final Throwable throwable);  }