@Test public void getGraphOfModuleWithOneArtifactAndThirdParty(){ repoHandler.loadTestCase(new TC05_ModuleWithOneArtifactAndThirdParty()); final String moduleId = DbModule.generateID(TC05_ModuleWithOneArtifactAndThirdParty.MODULE_NAME, TC05_ModuleWithOneArtifactAndThirdParty.MODULE_VERSION); AbstractGraph graph = graphHandler.getModuleGraph(moduleId); assertNotNull(graph); assertEquals(5, graph.getElements().size()); assertEquals(4, graph.getDependencies().size()); filters.getDecorator().setShowThirdparty(false); graph = graphHandler.getModuleGraph(moduleId); assertNotNull(graph); assertEquals(1, graph.getElements().size()); assertEquals(0, graph.getDependencies().size()); }
public AbstractGraph getModuleGraph(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final AbstractGraph graph = new ModuleGraph(); addModuleToGraph(module, graph, 0); return graph; }
GraphsHandler { public AbstractGraph getModuleGraph(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final AbstractGraph graph = new ModuleGraph(); addModuleToGraph(module, graph, 0); return graph; } }
GraphsHandler { public AbstractGraph getModuleGraph(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final AbstractGraph graph = new ModuleGraph(); addModuleToGraph(module, graph, 0); return graph; } GraphsHandler(final RepositoryHandler repoHandler, final FiltersHolder filters); }
GraphsHandler { public AbstractGraph getModuleGraph(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final AbstractGraph graph = new ModuleGraph(); addModuleToGraph(module, graph, 0); return graph; } GraphsHandler(final RepositoryHandler repoHandler, final FiltersHolder filters); AbstractGraph getModuleGraph(final String moduleId); TreeNode getModuleTree(final String moduleId); }
GraphsHandler { public AbstractGraph getModuleGraph(final String moduleId) { final ModuleHandler moduleHandler = new ModuleHandler(repoHandler); final DbModule module = moduleHandler.getModule(moduleId); final DbOrganization organization = moduleHandler.getOrganization(module); filters.setCorporateFilter(new CorporateFilter(organization)); final AbstractGraph graph = new ModuleGraph(); addModuleToGraph(module, graph, 0); return graph; } GraphsHandler(final RepositoryHandler repoHandler, final FiltersHolder filters); AbstractGraph getModuleGraph(final String moduleId); TreeNode getModuleTree(final String moduleId);  }