use of com.blackducksoftware.integration.hub.detect.detector.gradle.GradleReportParser in project hub-detect by blackducksoftware.
the class GradleExtractionDebugger method debug.
public void debug(LoggedDetectExtraction extraction, DetectRunInfo detectRunInfo, DetectConfiguration detectConfiguration) throws ExecutableRunnerException {
String id = extraction.extractionIdentifier;
ExecutableRunner executableRunner = Mockito.mock(ExecutableRunner.class);
Mockito.when(executableRunner.execute(Mockito.any())).thenReturn(new ExecutableOutput("", ""));
DetectFileFinder detectFileFinder = new DetectFileFinder();
File mockSourceFile = Mockito.mock(File.class);
File outputDirectory = new File(detectRunInfo.getExtractionsFolder(), extraction.extractionIdentifier);
GradleInspectorExtractor gradleInspectorExtractor = new GradleInspectorExtractor(executableRunner, detectFileFinder, new GradleReportParser(new ExternalIdFactory()), detectConfiguration);
Extraction extractionResult = gradleInspectorExtractor.extract(mockSourceFile, "", "", outputDirectory);
}
Aggregations