@Test public void testWhiteList() throws Exception { final WhiteList whiteList = new WhiteList(); when(whiteListService.load(packageNamesWhiteListPath)).thenReturn(whiteList); final Metadata metadata = new Metadata(); when(metadataService.getMetadata(packageNamesWhiteListPath)).thenReturn(metadata); ProjectScreenModel model = loader.load(pathToPom); assertEquals(packageNamesWhiteListPath, model.getPathToWhiteList()); assertEquals(whiteList, model.getWhiteList()); assertEquals(metadata, model.getWhiteListMetaData()); }
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);  }