@Test public void testThatDataIsFullyMapped() throws URISyntaxException { configureAnalyzer("dependencies.csv", ","); Set<Artifact> artifacts = analyzer.yield().getArtifacts(); Artifact foundArtifact = artifacts.stream() .filter(artifact -> "commons-csv".equals(artifact.getCoordinateForType(PackageURL.StandardTypes.MAVEN) .map(Coordinate::getName) .orElse(""))) .findFirst() .get(); commonsCsvFullDependencyCheck(foundArtifact); assertThat(foundArtifact.askFor(CopyrightStatement.class).get()).isEqualTo(new CopyrightStatement("Copyright 2005-2016 The Apache Software Foundation")); }
@Override public WorkflowStepResult yield() { Collection<Artifact> artifacts = new CSVArtifactMapper( componentInfoFile.toPath(), context.getToolConfiguration().getEncoding(), rowDelimiter, baseDir).createArtifactsList(); return new WorkflowStepResult(artifacts, true); }
CsvAnalyzer extends ManualAnalyzer { @Override public WorkflowStepResult yield() { Collection<Artifact> artifacts = new CSVArtifactMapper( componentInfoFile.toPath(), context.getToolConfiguration().getEncoding(), rowDelimiter, baseDir).createArtifactsList(); return new WorkflowStepResult(artifacts, true); } }
CsvAnalyzer extends ManualAnalyzer { @Override public WorkflowStepResult yield() { Collection<Artifact> artifacts = new CSVArtifactMapper( componentInfoFile.toPath(), context.getToolConfiguration().getEncoding(), rowDelimiter, baseDir).createArtifactsList(); return new WorkflowStepResult(artifacts, true); } CsvAnalyzer(); }
CsvAnalyzer extends ManualAnalyzer { @Override public WorkflowStepResult yield() { Collection<Artifact> artifacts = new CSVArtifactMapper( componentInfoFile.toPath(), context.getToolConfiguration().getEncoding(), rowDelimiter, baseDir).createArtifactsList(); return new WorkflowStepResult(artifacts, true); } CsvAnalyzer(); @Override WorkflowStepResult yield(); @Override void configure(Map<String, String> configMap); @Override String getName(); }
CsvAnalyzer extends ManualAnalyzer { @Override public WorkflowStepResult yield() { Collection<Artifact> artifacts = new CSVArtifactMapper( componentInfoFile.toPath(), context.getToolConfiguration().getEncoding(), rowDelimiter, baseDir).createArtifactsList(); return new WorkflowStepResult(artifacts, true); } CsvAnalyzer(); @Override WorkflowStepResult yield(); @Override void configure(Map<String, String> configMap); @Override String getName();  }