Search in sources :

Example 1 with JavaResolver

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);
}
Also used : JavaResolver(com.synopsys.integration.detectable.detectable.executable.resolver.JavaResolver) WrongOperatingSystemResult(com.synopsys.integration.detectable.detectable.result.WrongOperatingSystemResult) DockerDetectable(com.synopsys.integration.detectable.detectables.docker.DockerDetectable) DetectableResult(com.synopsys.integration.detectable.detectable.result.DetectableResult) DockerExtractor(com.synopsys.integration.detectable.detectables.docker.DockerExtractor) DetectableEnvironment(com.synopsys.integration.detectable.DetectableEnvironment) DockerInspectorResolver(com.synopsys.integration.detectable.detectables.docker.DockerInspectorResolver) DockerResolver(com.synopsys.integration.detectable.detectable.executable.resolver.DockerResolver) DockerDetectableOptions(com.synopsys.integration.detectable.detectables.docker.DockerDetectableOptions) Test(org.junit.jupiter.api.Test)

Aggregations

DetectableEnvironment (com.synopsys.integration.detectable.DetectableEnvironment)1 DockerResolver (com.synopsys.integration.detectable.detectable.executable.resolver.DockerResolver)1 JavaResolver (com.synopsys.integration.detectable.detectable.executable.resolver.JavaResolver)1 DetectableResult (com.synopsys.integration.detectable.detectable.result.DetectableResult)1 WrongOperatingSystemResult (com.synopsys.integration.detectable.detectable.result.WrongOperatingSystemResult)1 DockerDetectable (com.synopsys.integration.detectable.detectables.docker.DockerDetectable)1 DockerDetectableOptions (com.synopsys.integration.detectable.detectables.docker.DockerDetectableOptions)1 DockerExtractor (com.synopsys.integration.detectable.detectables.docker.DockerExtractor)1 DockerInspectorResolver (com.synopsys.integration.detectable.detectables.docker.DockerInspectorResolver)1 Test (org.junit.jupiter.api.Test)1