@Test public void testImports() throws Exception { final ProjectImports projectImports = new ProjectImports(); when(projectImportsService.load(importsPath)).thenReturn(projectImports); final Metadata metadata = new Metadata(); when(metadataService.getMetadata(importsPath)).thenReturn(metadata); ProjectScreenModel model = loader.load(pathToPom); assertEquals(importsPath, model.getPathToImports()); assertEquals(projectImports, model.getProjectImports()); assertEquals(metadata, model.getProjectImportsMetaData()); }
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);  }