@Test public void testDelete() throws Exception { final WorkspaceProject project = mock(WorkspaceProject.class); final Repository repository = mock(Repository.class); final String ouName = "test-realm"; final Space space = new Space(ouName); doReturn(repository).when(project).getRepository(); doReturn("myrepo").when(repository).getAlias(); doReturn(space).when(repository).getSpace(); service.delete(project); verify(repositoryService).removeRepository(eq(space), eq("myrepo")); }
@Override public void delete(final WorkspaceProject project) { repositoryService.removeRepository(project.getRepository().getSpace(), project.getRepository().getAlias()); }
ProjectScreenServiceImpl implements ProjectScreenService { @Override public void delete(final WorkspaceProject project) { repositoryService.removeRepository(project.getRepository().getSpace(), project.getRepository().getAlias()); } }
ProjectScreenServiceImpl implements ProjectScreenService { @Override public void delete(final WorkspaceProject project) { repositoryService.removeRepository(project.getRepository().getSpace(), project.getRepository().getAlias()); } ProjectScreenServiceImpl(); @Inject  ProjectScreenServiceImpl(final WorkspaceProjectService projectService,
                                    final RepositoryService repositoryService,
                                    final KieModuleService moduleService,
                                    final ProjectScreenModelLoader loader,
                                    final ProjectScreenModelSaver saver,
                                    final RepositoryCopier repositoryCopier,
                                    final POMService pomService,
                                    final MetadataService metadataService,
                                    final Event<NewProjectEvent> newProjectEvent); }
ProjectScreenServiceImpl implements ProjectScreenService { @Override public void delete(final WorkspaceProject project) { repositoryService.removeRepository(project.getRepository().getSpace(), project.getRepository().getAlias()); } ProjectScreenServiceImpl(); @Inject  ProjectScreenServiceImpl(final WorkspaceProjectService projectService,
                                    final RepositoryService repositoryService,
                                    final KieModuleService moduleService,
                                    final ProjectScreenModelLoader loader,
                                    final ProjectScreenModelSaver saver,
                                    final RepositoryCopier repositoryCopier,
                                    final POMService pomService,
                                    final MetadataService metadataService,
                                    final Event<NewProjectEvent> newProjectEvent); @Override ProjectScreenModel load(final Path pathToPom); @Override void save(final Path pathToPomXML,
                     final ProjectScreenModel model,
                     final String comment); @Override WorkspaceProject save(final Path pathToPomXML,
                                 final ProjectScreenModel model,
                                 final String comment,
                                 final DeploymentMode mode); @Override void delete(final WorkspaceProject project); @Override void copy(final WorkspaceProject project,
                     final String newName); @Override void reImport(final Path pathToPomXML); }
ProjectScreenServiceImpl implements ProjectScreenService { @Override public void delete(final WorkspaceProject project) { repositoryService.removeRepository(project.getRepository().getSpace(), project.getRepository().getAlias()); } ProjectScreenServiceImpl(); @Inject  ProjectScreenServiceImpl(final WorkspaceProjectService projectService,
                                    final RepositoryService repositoryService,
                                    final KieModuleService moduleService,
                                    final ProjectScreenModelLoader loader,
                                    final ProjectScreenModelSaver saver,
                                    final RepositoryCopier repositoryCopier,
                                    final POMService pomService,
                                    final MetadataService metadataService,
                                    final Event<NewProjectEvent> newProjectEvent); @Override ProjectScreenModel load(final Path pathToPom); @Override void save(final Path pathToPomXML,
                     final ProjectScreenModel model,
                     final String comment); @Override WorkspaceProject save(final Path pathToPomXML,
                                 final ProjectScreenModel model,
                                 final String comment,
                                 final DeploymentMode mode); @Override void delete(final WorkspaceProject project); @Override void copy(final WorkspaceProject project,
                     final String newName); @Override void reImport(final Path pathToPomXML);  }