use of com.synopsys.integration.detectable.detectables.nuget.NugetSolutionDetectable 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.detectable.detectables.nuget.NugetSolutionDetectable in project synopsys-detect by blackducksoftware.
the class NugetSolutionDetectableTest method notApplicableForPodfile.
@Test
public void notApplicableForPodfile() {
NugetInspectorResolver nugetInspectorManager = null;
NugetInspectorExtractor nugetInspectorExtractor = null;
NugetInspectorOptions nugetInspectorOptions = null;
DetectableEnvironment environment = MockDetectableEnvironment.empty();
FileFinder fileFinder = MockFileFinder.withFileNamed("podfile.lock");
NugetSolutionDetectable detectable = new NugetSolutionDetectable(environment, fileFinder, nugetInspectorManager, nugetInspectorExtractor, nugetInspectorOptions);
assertFalse(detectable.applicable().getPassed());
}
Aggregations