@Test public void importProjectWithPermissionTest() { emptyLibraryScreen.importProject(); verify(libraryPlaces).goToImportRepositoryPopUp(); }
public void importProject() { if (userCanCreateProjects()) { libraryPlaces.goToImportRepositoryPopUp(); } }
EmptyLibraryScreen { public void importProject() { if (userCanCreateProjects()) { libraryPlaces.goToImportRepositoryPopUp(); } } }
EmptyLibraryScreen { public void importProject() { if (userCanCreateProjects()) { libraryPlaces.goToImportRepositoryPopUp(); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); }
EmptyLibraryScreen { public void importProject() { if (userCanCreateProjects()) { libraryPlaces.goToImportRepositoryPopUp(); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); @PostConstruct void setup(); void trySamples(); void importProject(); View getView(); }
EmptyLibraryScreen { public void importProject() { if (userCanCreateProjects()) { libraryPlaces.goToImportRepositoryPopUp(); } } @Inject  EmptyLibraryScreen(final View view,
                              final AddProjectButtonPresenter addProjectButtonPresenter,
                              final ProjectController projectController,
                              final LibraryPlaces libraryPlaces); @PostConstruct void setup(); void trySamples(); void importProject(); View getView();  }