@Test public void showAllGraphs() { when(databaseAssistant.isReceiptsTableEmpty(trip)).thenReturn(Single.just(false)); when(preferenceManager.get(UserPreference.Receipts.UsePaymentMethods)).thenReturn(true); presenter.subscribe(trip); verify(graphsView).showEmptyText(false); verify(graphsView).present(sumByCategoryIndicator); verify(graphsView).present(sumByPaymentMethodIndicator); verify(graphsView).present(sumByDateIndicator); verify(graphsView).present(sumByReimbursementIndicator); }
public void subscribe(Trip trip) { this.trip = Preconditions.checkNotNull(trip); subscribe(); }
GraphsPresenter extends BaseViperPresenter<GraphsView, GraphsInteractor> { public void subscribe(Trip trip) { this.trip = Preconditions.checkNotNull(trip); subscribe(); } }
GraphsPresenter extends BaseViperPresenter<GraphsView, GraphsInteractor> { public void subscribe(Trip trip) { this.trip = Preconditions.checkNotNull(trip); subscribe(); } @Inject  GraphsPresenter(GraphsView view, GraphsInteractor interactor, UserPreferenceManager preferences,
                           DatabaseAssistant databaseAssistant); }
GraphsPresenter extends BaseViperPresenter<GraphsView, GraphsInteractor> { public void subscribe(Trip trip) { this.trip = Preconditions.checkNotNull(trip); subscribe(); } @Inject  GraphsPresenter(GraphsView view, GraphsInteractor interactor, UserPreferenceManager preferences,
                           DatabaseAssistant databaseAssistant); void subscribe(Trip trip); @Override void subscribe(); }
GraphsPresenter extends BaseViperPresenter<GraphsView, GraphsInteractor> { public void subscribe(Trip trip) { this.trip = Preconditions.checkNotNull(trip); subscribe(); } @Inject  GraphsPresenter(GraphsView view, GraphsInteractor interactor, UserPreferenceManager preferences,
                           DatabaseAssistant databaseAssistant); void subscribe(Trip trip); @Override void subscribe();  }