use of com.synopsys.integration.common.util.finder.FileFinder in project synopsys-detect by blackducksoftware.
the class XcodeWorkspaceDetectable method extractable.
@Override
public DetectableResult extractable() {
Requirements requirements = new Requirements(fileFinder, environment);
File swiftPMDirectory = workspaceDirectory.toPath().resolve("xcshareddata/swiftpm").toFile();
requirements.anyFile(new SearchPattern(swiftPMDirectory, "Package.resolved", packageResolvedFile -> foundPackageResolvedFile = packageResolvedFile), new SearchPattern(workspaceDirectory, "contents.xcworkspacedata", workspaceDataFile -> foundWorkspaceDataFile = workspaceDataFile));
return requirements.result();
}
use of com.synopsys.integration.common.util.finder.FileFinder in project synopsys-detect by blackducksoftware.
the class NugetSolutionDetectableTest method testApplicableForSolution.
@Test
public void testApplicableForSolution() {
NugetInspectorResolver nugetInspectorManager = null;
NugetInspectorExtractor nugetInspectorExtractor = null;
NugetInspectorOptions nugetInspectorOptions = null;
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed("test.sln");
NugetSolutionDetectable detectable = new NugetSolutionDetectable(environment, fileFinder, nugetInspectorManager, nugetInspectorExtractor, nugetInspectorOptions);
assertTrue(detectable.applicable().getPassed());
}
use of com.synopsys.integration.common.util.finder.FileFinder in project synopsys-detect by blackducksoftware.
the class ComposerLockDetectableTest method testApplicable.
@Test
public void testApplicable() {
ComposerLockExtractor composerLockExtractor = null;
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFilesNamed("composer.lock", "composer.json");
ComposerLockDetectable detectable = new ComposerLockDetectable(environment, fileFinder, composerLockExtractor);
assertTrue(detectable.applicable().getPassed());
}
use of com.synopsys.integration.common.util.finder.FileFinder in project synopsys-detect by blackducksoftware.
the class GemspecParseDetectableTest method testApplicable.
@Test
public void testApplicable() {
GemspecParseExtractor gemspecParseExtractor = null;
GemspecParseDetectableOptions gemspecParseDetectableOptions = null;
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed("test.gemspec");
GemspecParseDetectable detectable = new GemspecParseDetectable(environment, fileFinder, gemspecParseExtractor);
assertTrue(detectable.applicable().getPassed());
}
use of com.synopsys.integration.common.util.finder.FileFinder in project synopsys-detect by blackducksoftware.
the class NpmPackageJsonParseDetectableTest method testApplicable.
@Test
public void testApplicable() {
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed(PACKAGE_JSON_FILENAME);
EnumListFilter<NpmDependencyType> npmDependencyTypeFilter = EnumListFilter.fromExcluded(NpmDependencyType.DEV, NpmDependencyType.PEER);
NpmPackageJsonParseDetectableOptions npmPackageJsonParseDetectableOptions = new NpmPackageJsonParseDetectableOptions(npmDependencyTypeFilter);
NpmPackageJsonParseDetectable detectable = new NpmPackageJsonParseDetectable(environment, fileFinder, null);
assertTrue(detectable.applicable().getPassed());
}
Aggregations