use of com.synopsys.integration.detectable.detectable.executable.resolver.JavaResolver in project synopsys-detect by blackducksoftware.
the class DockerDetectableTest method testApplicable.
@Test
public void testApplicable() {
DetectableEnvironment environment = null;
DockerInspectorResolver dockerInspectorResolver = null;
JavaResolver javaResolver = null;
DockerResolver dockerResolver = null;
DockerExtractor dockerExtractor = null;
DockerDetectableOptions dockerDetectableOptions = Mockito.mock(DockerDetectableOptions.class);
Mockito.when(dockerDetectableOptions.hasDockerImageOrTar()).thenReturn(Boolean.TRUE);
DockerDetectable detectable = new DockerDetectable(environment, dockerInspectorResolver, javaResolver, dockerResolver, dockerExtractor, dockerDetectableOptions);
DetectableResult result = detectable.applicable();
assertTrue(result.getPassed() || result instanceof WrongOperatingSystemResult);
}
Aggregations