@Test public void log_reportsThrowableToFirebase_whenThrowableIsNonNull() { Throwable expected = new Throwable(); int dummyPriority = 1; firebaseReleaseTree.log(dummyPriority, "dummyTag", "dummyMsg", expected); verify(firebaseErrorReporter).report(eq(expected)); }
@Override protected void log(final int priority, @Nullable final String tag, @Nullable final String message, @Nullable final Throwable throwable) { Option.ofObj(throwable) .ifSome(firebaseErrorReporter::report); }
FirebaseReleaseTree extends Timber.Tree { @Override protected void log(final int priority, @Nullable final String tag, @Nullable final String message, @Nullable final Throwable throwable) { Option.ofObj(throwable) .ifSome(firebaseErrorReporter::report); } }
FirebaseReleaseTree extends Timber.Tree { @Override protected void log(final int priority, @Nullable final String tag, @Nullable final String message, @Nullable final Throwable throwable) { Option.ofObj(throwable) .ifSome(firebaseErrorReporter::report); } FirebaseReleaseTree(@NonNull final FirebaseErrorReporter firebaseErrorReporter); }
FirebaseReleaseTree extends Timber.Tree { @Override protected void log(final int priority, @Nullable final String tag, @Nullable final String message, @Nullable final Throwable throwable) { Option.ofObj(throwable) .ifSome(firebaseErrorReporter::report); } FirebaseReleaseTree(@NonNull final FirebaseErrorReporter firebaseErrorReporter);  }
FirebaseReleaseTree extends Timber.Tree { @Override protected void log(final int priority, @Nullable final String tag, @Nullable final String message, @Nullable final Throwable throwable) { Option.ofObj(throwable) .ifSome(firebaseErrorReporter::report); } FirebaseReleaseTree(@NonNull final FirebaseErrorReporter firebaseErrorReporter);   }