use of com.synopsys.integration.detectable.detectables.npm.cli.NpmCliDetectable in project synopsys-detect by blackducksoftware.
the class DetectableFactory method createNpmCliDetectable.
public NpmCliDetectable createNpmCliDetectable(DetectableEnvironment environment, NpmResolver npmResolver, NpmCliExtractorOptions npmCliExtractorOptions) {
NpmCliParser npmCliParser = new NpmCliParser(externalIdFactory, npmCliExtractorOptions.getDependencyTypeFilter());
NpmCliExtractor npmCliExtractor = new NpmCliExtractor(executableRunner, npmCliParser, gson, toolVersionLogger);
return new NpmCliDetectable(environment, fileFinder, npmResolver, npmCliExtractor, npmCliExtractorOptions);
}
use of com.synopsys.integration.detectable.detectables.npm.cli.NpmCliDetectable in project synopsys-detect by blackducksoftware.
the class NpmCliDetectableTest method testApplicable.
@Test
public void testApplicable() {
NpmResolver npmResolver = null;
NpmCliExtractor npmCliExtractor = null;
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed("package.json");
NpmCliDetectable detectable = new NpmCliDetectable(environment, fileFinder, npmResolver, npmCliExtractor, new NpmCliExtractorOptions(EnumListFilter.fromExcluded(NpmDependencyType.DEV, NpmDependencyType.PEER), ""));
assertTrue(detectable.applicable().getPassed());
}
Aggregations