@Test public void testGetDcaDeploymentParameterModels() { final List<DcaDeploymentParameterModel> models = getDcaDeploymentParameterModels(asList(N_1, N_2), asList(V_1, V_2)); final List<DcaDeploymentParameterModel> expected = asList(new DcaDeploymentParameterModel(N_1, V_1), new DcaDeploymentParameterModel(N_2, V_2)); assertEquals(expected, models); }
@NotNull public static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels( @NotNull final List<String> deploymentParameterNames, @NotNull final List<String> deploymentParameterValues) { final Iterator<String> deploymentParameterNamesIter = deploymentParameterNames.iterator(); final Iterator<String> deploymentParameterValuesIter = deploymentParameterValues.iterator(); final List<DcaDeploymentParameterModel> deploymentParameters = new ArrayList<>(); while (deploymentParameterNamesIter.hasNext() && deploymentParameterValuesIter.hasNext()) { deploymentParameters.add(new DcaDeploymentParameterModel(deploymentParameterNamesIter.next(), deploymentParameterValuesIter.next())); } return deploymentParameters; }
CreateResourceJSONController { @NotNull public static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels( @NotNull final List<String> deploymentParameterNames, @NotNull final List<String> deploymentParameterValues) { final Iterator<String> deploymentParameterNamesIter = deploymentParameterNames.iterator(); final Iterator<String> deploymentParameterValuesIter = deploymentParameterValues.iterator(); final List<DcaDeploymentParameterModel> deploymentParameters = new ArrayList<>(); while (deploymentParameterNamesIter.hasNext() && deploymentParameterValuesIter.hasNext()) { deploymentParameters.add(new DcaDeploymentParameterModel(deploymentParameterNamesIter.next(), deploymentParameterValuesIter.next())); } return deploymentParameters; } }
CreateResourceJSONController { @NotNull public static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels( @NotNull final List<String> deploymentParameterNames, @NotNull final List<String> deploymentParameterValues) { final Iterator<String> deploymentParameterNamesIter = deploymentParameterNames.iterator(); final Iterator<String> deploymentParameterValuesIter = deploymentParameterValues.iterator(); final List<DcaDeploymentParameterModel> deploymentParameters = new ArrayList<>(); while (deploymentParameterNamesIter.hasNext() && deploymentParameterValuesIter.hasNext()) { deploymentParameters.add(new DcaDeploymentParameterModel(deploymentParameterNamesIter.next(), deploymentParameterValuesIter.next())); } return deploymentParameters; }  }
CreateResourceJSONController { @NotNull public static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels( @NotNull final List<String> deploymentParameterNames, @NotNull final List<String> deploymentParameterValues) { final Iterator<String> deploymentParameterNamesIter = deploymentParameterNames.iterator(); final Iterator<String> deploymentParameterValuesIter = deploymentParameterValues.iterator(); final List<DcaDeploymentParameterModel> deploymentParameters = new ArrayList<>(); while (deploymentParameterNamesIter.hasNext() && deploymentParameterValuesIter.hasNext()) { deploymentParameters.add(new DcaDeploymentParameterModel(deploymentParameterNamesIter.next(), deploymentParameterValuesIter.next())); } return deploymentParameters; }  @NotNull static List<DcaBaseResourceModel> getDcaBaseResourceModels(@NotNull final List<String> baseResourceUuids,
                                                                      @NotNull final List<String> baseResourceCiTypes,
                                                                      @NotNull final List<String> baseResourceTypeUuids); @NotNull static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels(
            @NotNull final List<String> deploymentParameterNames,
            @NotNull final List<String> deploymentParameterValues); }
CreateResourceJSONController { @NotNull public static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels( @NotNull final List<String> deploymentParameterNames, @NotNull final List<String> deploymentParameterValues) { final Iterator<String> deploymentParameterNamesIter = deploymentParameterNames.iterator(); final Iterator<String> deploymentParameterValuesIter = deploymentParameterValues.iterator(); final List<DcaDeploymentParameterModel> deploymentParameters = new ArrayList<>(); while (deploymentParameterNamesIter.hasNext() && deploymentParameterValuesIter.hasNext()) { deploymentParameters.add(new DcaDeploymentParameterModel(deploymentParameterNamesIter.next(), deploymentParameterValuesIter.next())); } return deploymentParameters; }  @NotNull static List<DcaBaseResourceModel> getDcaBaseResourceModels(@NotNull final List<String> baseResourceUuids,
                                                                      @NotNull final List<String> baseResourceCiTypes,
                                                                      @NotNull final List<String> baseResourceTypeUuids); @NotNull static List<DcaDeploymentParameterModel> getDcaDeploymentParameterModels(
            @NotNull final List<String> deploymentParameterNames,
            @NotNull final List<String> deploymentParameterValues);  }