@Test void testWithValidImageWithoutUserCredentials() { List<Map<String, Object>> parameters = new ArrayList<>(); Map<String, Object> moduleParameters = new HashMap<>(); Map<String, String> dockerParameters = new HashMap<>(); String sampleImage = "cloudfoundry/test-app"; dockerParameters.put("image", sampleImage); moduleParameters.put("docker", dockerParameters); parameters.add(moduleParameters); DockerInfo actualDockerInfo = dockerInfoParser.parse(parameters); DockerInfo expectedDockerInfo = ImmutableDockerInfo.builder() .image(sampleImage) .build(); assertEquals(expectedDockerInfo, actualDockerInfo); }
@Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); } }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); }  }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); }  @Override DockerInfo parse(List<Map<String, Object>> parametersList); }
DockerInfoParser implements ParametersParser<DockerInfo> { @Override public DockerInfo parse(List<Map<String, Object>> parametersList) { Map<String, String> dockerParams = getDockerParams(parametersList); return getDockerInfo(dockerParams); }  @Override DockerInfo parse(List<Map<String, Object>> parametersList);  }