@Test public void clickOnItemShowsMovieDetails() { mMovieItemViewModel.setMovie(mMovie); mMovieItemViewModel.clickMovieItem(); verify(interactor).showMovieDetails(mMovie); }
public void clickMovieItem() { Movie movie = getMovie(); if (movie != null) { interactor.showMovieDetails(movie); } }
MovieItemViewModel extends MovieViewModel { public void clickMovieItem() { Movie movie = getMovie(); if (movie != null) { interactor.showMovieDetails(movie); } } }
MovieItemViewModel extends MovieViewModel { public void clickMovieItem() { Movie movie = getMovie(); if (movie != null) { interactor.showMovieDetails(movie); } } MovieItemViewModel(MoviesRepository moviesRepository, Interactor interactor); }
MovieItemViewModel extends MovieViewModel { public void clickMovieItem() { Movie movie = getMovie(); if (movie != null) { interactor.showMovieDetails(movie); } } MovieItemViewModel(MoviesRepository moviesRepository, Interactor interactor); void clickMovieItem(); }
MovieItemViewModel extends MovieViewModel { public void clickMovieItem() { Movie movie = getMovie(); if (movie != null) { interactor.showMovieDetails(movie); } } MovieItemViewModel(MoviesRepository moviesRepository, Interactor interactor); void clickMovieItem();  }