@Test public void testRepositories() throws Exception { final ModuleRepositories moduleRepositories = new ModuleRepositories(); when(moduleRepositoriesService.load(repositoriesPath)).thenReturn(moduleRepositories); ProjectScreenModel model = loader.load(pathToPom); assertEquals(repositoriesPath, model.getPathToRepositories()); assertEquals(moduleRepositories, model.getRepositories()); }
public ProjectScreenModel load(final Path pathToPom) { return new Loader(pathToPom).load(); }
ProjectScreenModelLoader { public ProjectScreenModel load(final Path pathToPom) { return new Loader(pathToPom).load(); } }
ProjectScreenModelLoader { public ProjectScreenModel load(final Path pathToPom) { return new Loader(pathToPom).load(); } ProjectScreenModelLoader(); @Inject  ProjectScreenModelLoader(final KieModuleService moduleService,
                                    final POMService pomService,
                                    final MetadataService metadataService,
                                    final KModuleService kModuleService,
                                    final ProjectImportsService importsService,
                                    final ModuleRepositoriesService repositoriesService,
                                    final PackageNameWhiteListService whiteListService,
                                    final WorkspaceProjectService workspaceProjectService); }
ProjectScreenModelLoader { public ProjectScreenModel load(final Path pathToPom) { return new Loader(pathToPom).load(); } ProjectScreenModelLoader(); @Inject  ProjectScreenModelLoader(final KieModuleService moduleService,
                                    final POMService pomService,
                                    final MetadataService metadataService,
                                    final KModuleService kModuleService,
                                    final ProjectImportsService importsService,
                                    final ModuleRepositoriesService repositoriesService,
                                    final PackageNameWhiteListService whiteListService,
                                    final WorkspaceProjectService workspaceProjectService); ProjectScreenModel load(final Path pathToPom); }
ProjectScreenModelLoader { public ProjectScreenModel load(final Path pathToPom) { return new Loader(pathToPom).load(); } ProjectScreenModelLoader(); @Inject  ProjectScreenModelLoader(final KieModuleService moduleService,
                                    final POMService pomService,
                                    final MetadataService metadataService,
                                    final KModuleService kModuleService,
                                    final ProjectImportsService importsService,
                                    final ModuleRepositoriesService repositoriesService,
                                    final PackageNameWhiteListService whiteListService,
                                    final WorkspaceProjectService workspaceProjectService); ProjectScreenModel load(final Path pathToPom);  }