@Test public void testThatMissingSourcesDontGetMapped() throws URISyntaxException { configureAnalyzer("dependencyWithMissingSource.csv", ","); Set<Artifact> artifacts = analyzer.yield().getArtifacts(); Artifact foundArtifact = artifacts.stream() .findFirst() .get(); assertThat(foundArtifact.askFor(ArtifactSourceFile.class)).isNotPresent(); }
@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();  }