@Test public void showEmptyText() { when(databaseAssistant.isReceiptsTableEmpty(trip)).thenReturn(Single.just(true)); when(interactor.getSummationByCategories(trip)).thenReturn(Maybe.empty()); when(interactor.getSummationByPaymentMethod(trip)).thenReturn(Maybe.empty()); when(interactor.getSummationByDate(trip)).thenReturn(Maybe.empty()); when(interactor.getSummationByReimbursement(trip)).thenReturn(Maybe.empty()); presenter.subscribe(trip); verify(graphsView).showEmptyText(true); verify(graphsView, never()).present(any()); }
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();  }