@Test public void onCreateWouldShowList() { List<FlashcardWord> list = Collections.singletonList(mock(FlashcardWord.class)); prepareTestData(list); presenter.onCreate(); presenter.onBind(view); verify(view).showWords(list); }
@Override public void onCreate() { onLoadFlashcards(); }
FlashcardsPresenter extends AbstractPresenter<IFlashcardsView> { @Override public void onCreate() { onLoadFlashcards(); } }
FlashcardsPresenter extends AbstractPresenter<IFlashcardsView> { @Override public void onCreate() { onLoadFlashcards(); } @Inject  FlashcardsPresenter(FlashcardsModule module, @Named(VIEW_EXECUTOR) Executor executor); }
FlashcardsPresenter extends AbstractPresenter<IFlashcardsView> { @Override public void onCreate() { onLoadFlashcards(); } @Inject  FlashcardsPresenter(FlashcardsModule module, @Named(VIEW_EXECUTOR) Executor executor); @Override void onCreate(); @Override void onDestroy(); void onLoadFlashcards(); void onWordRight(FlashcardWord word); void onWordWrong(FlashcardWord word); void onCardsDepleted(); }
FlashcardsPresenter extends AbstractPresenter<IFlashcardsView> { @Override public void onCreate() { onLoadFlashcards(); } @Inject  FlashcardsPresenter(FlashcardsModule module, @Named(VIEW_EXECUTOR) Executor executor); @Override void onCreate(); @Override void onDestroy(); void onLoadFlashcards(); void onWordRight(FlashcardWord word); void onWordWrong(FlashcardWord word); void onCardsDepleted();  }