use of com.synopsys.integration.bdio.BdioTransformer in project synopsys-detect by blackducksoftware.
the class BdioAggregationTest method setup.
@BeforeAll
static void setup() throws IOException {
gson = new Gson();
bdioTransformer = new BdioTransformer();
List<String> inputBdioFilenames = Arrays.asList("basic_multiproject_0_0_0_SNAPSHOT_com_synopsys_integration_basic_multiproject_0_0_0_SNAPSHOT_gradle_bom.jsonld", "basic_multiproject_0_0_0_SNAPSHOT_subprojectone_basic_multiproject_subprojectone_unspecified_gradle_bom.jsonld", "basic_multiproject_0_0_0_SNAPSHOT_subprojecttwo_basic_multiproject_subprojecttwo_unspecified_gradle_bom.jsonld");
sourceDir = new File("src/test/resources/workflow/bdio/aggregation/src");
inputCodelocations = readInputCodeLocations(inputBdioFilenames, sourceDir);
}
use of com.synopsys.integration.bdio.BdioTransformer in project synopsys-detect by blackducksoftware.
the class DockerExtractorTest method getMockDockerExtractor.
private DockerExtractor getMockDockerExtractor(DetectableExecutableRunner executableRunner, FileFinder fileFinder) {
BdioTransformer bdioTransformer = Mockito.mock(BdioTransformer.class);
ExternalIdFactory externalIdFactory = Mockito.mock(ExternalIdFactory.class);
Gson gson = new Gson();
DockerInspectorResultsFileParser dockerInspectorResultsFileParser = Mockito.mock(DockerInspectorResultsFileParser.class);
DockerInspectorResults dockerInspectorResults = new DockerInspectorResults("returnedimage", "returnedtag", "returned message");
Mockito.when(dockerInspectorResultsFileParser.parse(Mockito.anyString())).thenReturn(Optional.of(dockerInspectorResults));
ImageIdentifierGenerator imageIdentifierGenerator = new ImageIdentifierGenerator();
return new DockerExtractor(fileFinder, executableRunner, bdioTransformer, externalIdFactory, gson, dockerInspectorResultsFileParser, imageIdentifierGenerator);
}
Aggregations