@Test public void testWhiteListNoMetadata() throws Exception { final WhiteList whiteList = new WhiteList(); testFileSystem.deleteFile(packageNamesWhiteListPath); when(whiteListService.load(packageNamesWhiteListPath)).thenReturn(whiteList); ProjectScreenModel model = loader.load(pathToPom); assertEquals(packageNamesWhiteListPath, model.getPathToWhiteList()); assertEquals(whiteList, model.getWhiteList()); assertNotNull(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);  }