Search in sources :

Example 1 with DartPubDepsDetectableOptions

use of com.synopsys.integration.detectable.detectables.dart.pubdep.DartPubDepsDetectableOptions in project synopsys-detect by blackducksoftware.

the class PubDepsExtractorTest method testGracefulFailure.

private void testGracefulFailure(ExecutableOutput mockExecutableOutput) throws ExecutableRunnerException {
    DetectableExecutableRunner executableRunner = Mockito.mock(DetectableExecutableRunner.class);
    Mockito.when(executableRunner.execute(Mockito.any())).thenReturn(mockExecutableOutput);
    PubDepsExtractor extractor = new PubDepsExtractor(executableRunner, new PubDepsParser(), null, new ToolVersionLogger(executableRunner));
    Extraction extraction = extractor.extract(null, null, null, new DartPubDepsDetectableOptions(EnumListFilter.excludeNone()), null);
    Assertions.assertFalse(extraction.isSuccess() && null == extraction.getError());
}
Also used : PubDepsParser(com.synopsys.integration.detectable.detectables.dart.pubdep.PubDepsParser) DetectableExecutableRunner(com.synopsys.integration.detectable.detectable.executable.DetectableExecutableRunner) DartPubDepsDetectableOptions(com.synopsys.integration.detectable.detectables.dart.pubdep.DartPubDepsDetectableOptions) PubDepsExtractor(com.synopsys.integration.detectable.detectables.dart.pubdep.PubDepsExtractor) Extraction(com.synopsys.integration.detectable.extraction.Extraction) ToolVersionLogger(com.synopsys.integration.detectable.util.ToolVersionLogger)

Aggregations

DetectableExecutableRunner (com.synopsys.integration.detectable.detectable.executable.DetectableExecutableRunner)1 DartPubDepsDetectableOptions (com.synopsys.integration.detectable.detectables.dart.pubdep.DartPubDepsDetectableOptions)1 PubDepsExtractor (com.synopsys.integration.detectable.detectables.dart.pubdep.PubDepsExtractor)1 PubDepsParser (com.synopsys.integration.detectable.detectables.dart.pubdep.PubDepsParser)1 Extraction (com.synopsys.integration.detectable.extraction.Extraction)1 ToolVersionLogger (com.synopsys.integration.detectable.util.ToolVersionLogger)1