Search in sources :

Example 1 with NpmCliExtractorOptions

use of com.synopsys.integration.detectable.detectables.npm.cli.NpmCliExtractorOptions 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());
}
Also used : NpmCliExtractorOptions(com.synopsys.integration.detectable.detectables.npm.cli.NpmCliExtractorOptions) NpmResolver(com.synopsys.integration.detectable.detectable.executable.resolver.NpmResolver) NpmCliExtractor(com.synopsys.integration.detectable.detectables.npm.cli.NpmCliExtractor) NpmCliDetectable(com.synopsys.integration.detectable.detectables.npm.cli.NpmCliDetectable) MockFileFinder(com.synopsys.integration.detectable.util.MockFileFinder) FileFinder(com.synopsys.integration.common.util.finder.FileFinder) DetectableEnvironment(com.synopsys.integration.detectable.DetectableEnvironment) MockDetectableEnvironment(com.synopsys.integration.detectable.util.MockDetectableEnvironment) Test(org.junit.jupiter.api.Test)

Aggregations

FileFinder (com.synopsys.integration.common.util.finder.FileFinder)1 DetectableEnvironment (com.synopsys.integration.detectable.DetectableEnvironment)1 NpmResolver (com.synopsys.integration.detectable.detectable.executable.resolver.NpmResolver)1 NpmCliDetectable (com.synopsys.integration.detectable.detectables.npm.cli.NpmCliDetectable)1 NpmCliExtractor (com.synopsys.integration.detectable.detectables.npm.cli.NpmCliExtractor)1 NpmCliExtractorOptions (com.synopsys.integration.detectable.detectables.npm.cli.NpmCliExtractorOptions)1 MockDetectableEnvironment (com.synopsys.integration.detectable.util.MockDetectableEnvironment)1 MockFileFinder (com.synopsys.integration.detectable.util.MockFileFinder)1 Test (org.junit.jupiter.api.Test)1