use of com.synopsys.integration.detectable.util.ToolVersionLogger 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());
}
Aggregations