@Test public void testLoad() throws Exception { final ProjectScreenModel model = service.load(pathToPom); assertEquals(pom, model.getPOM()); assertEquals(pomMetaData, model.getPOMMetaData()); assertEquals(pathToPom, model.getPathToPOM()); assertEquals(kmodule, model.getKModule()); assertEquals(kmoduleMetaData, model.getKModuleMetaData()); assertEquals(pathToKieModule, model.getPathToKModule()); assertEquals(projectImports, model.getProjectImports()); assertEquals(projectImportsMetaData, model.getProjectImportsMetaData()); assertEquals(pathToModuleImports, model.getPathToImports()); assertEquals(moduleRepositories, model.getRepositories()); assertEquals(pathToModuleRepositories, model.getPathToRepositories()); assertEquals(emptyList(), model.getGitUrls()); verify(pomService, times(1)).load(eq(pathToPom)); verify(metadataService, times(1)).getMetadata(eq(pathToPom)); verify(moduleService, times(1)).resolveModule(eq(pathToPom)); verify(kModuleService, times(1)).load(eq(pathToKieModule)); verify(metadataService, times(1)).getMetadata(eq(pathToKieModule)); verify(importsService, times(1)).load(eq(pathToModuleImports)); verify(metadataService, times(1)).getMetadata(eq(pathToModuleImports)); verify(repositoriesService, times(1)).load(eq(pathToModuleRepositories)); }
@Override public ProjectScreenModel load(final Path pathToPom) { return loader.load(pathToPom); }
ProjectScreenServiceImpl implements ProjectScreenService { @Override public ProjectScreenModel load(final Path pathToPom) { return loader.load(pathToPom); } }
ProjectScreenServiceImpl implements ProjectScreenService { @Override public ProjectScreenModel load(final Path pathToPom) { return loader.load(pathToPom); } 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 ProjectScreenModel load(final Path pathToPom) { return loader.load(pathToPom); } 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 ProjectScreenModel load(final Path pathToPom) { return loader.load(pathToPom); } 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);  }