@Test public void testGoToDetail() { when(wordPressService.listAuthors()) .thenReturn(authorResponse(2)); AuthorListModel authorListModel = viewModel.initAndResume(); viewModel.goToAuthorDetail(1); verify(navigator).openPostList(PostListArgument.create(authorListModel.get(1))); }
public void goToAuthorDetail(int position) { Author author = model.get(position); navigator.openPostList(PostListArgument.create(author)); }
AuthorListViewModel extends RxListViewModel<Void, AuthorListModel> { public void goToAuthorDetail(int position) { Author author = model.get(position); navigator.openPostList(PostListArgument.create(author)); } }
AuthorListViewModel extends RxListViewModel<Void, AuthorListModel> { public void goToAuthorDetail(int position) { Author author = model.get(position); navigator.openPostList(PostListArgument.create(author)); } @Inject  AuthorListViewModel(); }
AuthorListViewModel extends RxListViewModel<Void, AuthorListModel> { public void goToAuthorDetail(int position) { Author author = model.get(position); navigator.openPostList(PostListArgument.create(author)); } @Inject  AuthorListViewModel(); void goToAuthorDetail(int position); }
AuthorListViewModel extends RxListViewModel<Void, AuthorListModel> { public void goToAuthorDetail(int position) { Author author = model.get(position); navigator.openPostList(PostListArgument.create(author)); } @Inject  AuthorListViewModel(); void goToAuthorDetail(int position);  }