@Test public void testOnNext() throws Exception { ArrayList<Announcement> announcements = new ArrayList<>(); announcements.add(new Announcement()); presenter.onNext(announcements); verify(view).showAnnouncements(announcements); }
@Override void onNext(ArrayList<Announcement> announcements) { Collections.sort(announcements, this); if (isViewAttached()) { getView().showAnnouncements(announcements); } }
AnnouncementPresenter extends RxPresenter<AnnouncementView, ArrayList<Announcement>> implements Comparator<Announcement> { @Override void onNext(ArrayList<Announcement> announcements) { Collections.sort(announcements, this); if (isViewAttached()) { getView().showAnnouncements(announcements); } } }
AnnouncementPresenter extends RxPresenter<AnnouncementView, ArrayList<Announcement>> implements Comparator<Announcement> { @Override void onNext(ArrayList<Announcement> announcements) { Collections.sort(announcements, this); if (isViewAttached()) { getView().showAnnouncements(announcements); } }  }
AnnouncementPresenter extends RxPresenter<AnnouncementView, ArrayList<Announcement>> implements Comparator<Announcement> { @Override void onNext(ArrayList<Announcement> announcements) { Collections.sort(announcements, this); if (isViewAttached()) { getView().showAnnouncements(announcements); } }  void updateAnnouncements(); @Override int compare(Announcement lhs, Announcement rhs); }
AnnouncementPresenter extends RxPresenter<AnnouncementView, ArrayList<Announcement>> implements Comparator<Announcement> { @Override void onNext(ArrayList<Announcement> announcements) { Collections.sort(announcements, this); if (isViewAttached()) { getView().showAnnouncements(announcements); } }  void updateAnnouncements(); @Override int compare(Announcement lhs, Announcement rhs);  }