@Test public void shouldSetQueryWhenPresenterSetQuery(){ presenter.onGetTextFromSearchField("Transformers"); verify(useCaseGetActorsByQueryMock).setQuery("Transformers"); }
public void onGetTextFromSearchField(String query) { getActorsByQuery.setQuery(query); }
ActorsPresenter extends BasePresenter<ActorsPresenter.View> { public void onGetTextFromSearchField(String query) { getActorsByQuery.setQuery(query); } }
ActorsPresenter extends BasePresenter<ActorsPresenter.View> { public void onGetTextFromSearchField(String query) { getActorsByQuery.setQuery(query); } ActorsPresenter(GetActorsByQuery getActorsByQuery); }
ActorsPresenter extends BasePresenter<ActorsPresenter.View> { public void onGetTextFromSearchField(String query) { getActorsByQuery.setQuery(query); } ActorsPresenter(GetActorsByQuery getActorsByQuery); @Override void initialize(); void setActors(List<Actor> actors); void onGetTextFromSearchField(String query); void onActorClicked(int actorId , int viewHolderPosition); void onDestroy(); }
ActorsPresenter extends BasePresenter<ActorsPresenter.View> { public void onGetTextFromSearchField(String query) { getActorsByQuery.setQuery(query); } ActorsPresenter(GetActorsByQuery getActorsByQuery); @Override void initialize(); void setActors(List<Actor> actors); void onGetTextFromSearchField(String query); void onActorClicked(int actorId , int viewHolderPosition); void onDestroy();  }