@Test public void setupTest() { emptyLibraryScreen.setup(); verify(view).init(emptyLibraryScreen); verify(addProjectButtonPresenter).getView(); verify(view).addAction(any()); }
@PostConstruct public void setup() { view.init(this); if (userCanCreateProjects()) { view.addAction(addProjectButtonPresenter.getView().getElement()); } }
EmptyLibraryScreen { @PostConstruct public void setup() { view.init(this); if (userCanCreateProjects()) { view.addAction(addProjectButtonPresenter.getView().getElement()); } } }
EmptyLibraryScreen { @PostConstruct public void setup() { view.init(this); if (userCanCreateProjects()) { view.addAction(addProjectButtonPresenter.getView().getElement()); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); }
EmptyLibraryScreen { @PostConstruct public void setup() { view.init(this); if (userCanCreateProjects()) { view.addAction(addProjectButtonPresenter.getView().getElement()); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); @PostConstruct void setup(); void trySamples(); void importProject(); View getView(); }
EmptyLibraryScreen { @PostConstruct public void setup() { view.init(this); if (userCanCreateProjects()) { view.addAction(addProjectButtonPresenter.getView().getElement()); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); @PostConstruct void setup(); void trySamples(); void importProject(); View getView();  }