@Test public void onCreateWouldStartLoadingFlashcards() { when(module.getFlashcards()).thenReturn(Call.empty()); presenter.onCreate(); presenter.onBind(view); verify(module).getFlashcards(); verify(view).showProgress(); }
@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();  }