@Test public void testLoad() { viewModel.initAndResume(Post.create(1, Author.create(1, "name", "last", "email"), "title", null, "url", null)); assertThat(viewModel.getPost().url()).isEqualTo("url"); }
public Post getPost() { return model.getPost(); }
PageViewModel extends ViewModel<Post, PageModel> { public Post getPost() { return model.getPost(); } }
PageViewModel extends ViewModel<Post, PageModel> { public Post getPost() { return model.getPost(); } @Inject  PageViewModel(); }
PageViewModel extends ViewModel<Post, PageModel> { public Post getPost() { return model.getPost(); } @Inject  PageViewModel(); Post getPost(); @Override void resume(); void htmlLoaded(); void share(); }
PageViewModel extends ViewModel<Post, PageModel> { public Post getPost() { return model.getPost(); } @Inject  PageViewModel(); Post getPost(); @Override void resume(); void htmlLoaded(); void share(); public ObservableBoolean loading; }