@Test public void testOnNext() throws Exception { ArrayList<Event> events = new ArrayList<>(); events.add(new Event()); presenter.onNext(events); verify(view).showEvents(events); }
@Override void onNext(ArrayList<Event> events) { Collections.sort(events, this); if (isViewAttached()) { getView().showEvents(events); } }
SchedulePresenter extends RxPresenter<ScheduleView, ArrayList<Event>> implements Comparator<Event> { @Override void onNext(ArrayList<Event> events) { Collections.sort(events, this); if (isViewAttached()) { getView().showEvents(events); } } }
SchedulePresenter extends RxPresenter<ScheduleView, ArrayList<Event>> implements Comparator<Event> { @Override void onNext(ArrayList<Event> events) { Collections.sort(events, this); if (isViewAttached()) { getView().showEvents(events); } }  }
SchedulePresenter extends RxPresenter<ScheduleView, ArrayList<Event>> implements Comparator<Event> { @Override void onNext(ArrayList<Event> events) { Collections.sort(events, this); if (isViewAttached()) { getView().showEvents(events); } }  void updateEvents(); @Override int compare(Event lhs, Event rhs); }
SchedulePresenter extends RxPresenter<ScheduleView, ArrayList<Event>> implements Comparator<Event> { @Override void onNext(ArrayList<Event> events) { Collections.sort(events, this); if (isViewAttached()) { getView().showEvents(events); } }  void updateEvents(); @Override int compare(Event lhs, Event rhs);  }