@Test public void resolvePropertiesNotSetAndOverrideFalse() { Map<String, String> originalProperties = new HashMap<>(); originalProperties.put("foo", "bar"); Map<String, String> resolvedProperties = cloudHubArtifactDeployer.resolveProperties(originalProperties, null, false); assertThat("originalProperties should have the same size", resolvedProperties.size(), equalTo(1)); assertThat("resolvedProperties should contains the (foo,bar) entry", resolvedProperties, hasEntry("foo", "bar")); }
protected Map<String, String> resolveProperties(Map<String, String> originalProperties, Map<String, String> properties, boolean overrideProperties) { if (properties != null) { if (!overrideProperties) { properties.putAll(originalProperties); } originalProperties = properties; } return originalProperties; }
CloudHubArtifactDeployer implements ArtifactDeployer { protected Map<String, String> resolveProperties(Map<String, String> originalProperties, Map<String, String> properties, boolean overrideProperties) { if (properties != null) { if (!overrideProperties) { properties.putAll(originalProperties); } originalProperties = properties; } return originalProperties; } }
CloudHubArtifactDeployer implements ArtifactDeployer { protected Map<String, String> resolveProperties(Map<String, String> originalProperties, Map<String, String> properties, boolean overrideProperties) { if (properties != null) { if (!overrideProperties) { properties.putAll(originalProperties); } originalProperties = properties; } return originalProperties; } CloudHubArtifactDeployer(Deployment deployment, DeployerLog log);  CloudHubArtifactDeployer(Deployment deployment, CloudHubClient cloudHubClient, DeployerLog log); }
CloudHubArtifactDeployer implements ArtifactDeployer { protected Map<String, String> resolveProperties(Map<String, String> originalProperties, Map<String, String> properties, boolean overrideProperties) { if (properties != null) { if (!overrideProperties) { properties.putAll(originalProperties); } originalProperties = properties; } return originalProperties; } CloudHubArtifactDeployer(Deployment deployment, DeployerLog log);  CloudHubArtifactDeployer(Deployment deployment, CloudHubClient cloudHubClient, DeployerLog log); void setDeploymentVerification(DeploymentVerification deploymentVerification); @Override void deployDomain(); @Override void undeployDomain(); @Override void deployApplication(); @Override void undeployApplication(); String getApplicationName(); }
CloudHubArtifactDeployer implements ArtifactDeployer { protected Map<String, String> resolveProperties(Map<String, String> originalProperties, Map<String, String> properties, boolean overrideProperties) { if (properties != null) { if (!overrideProperties) { properties.putAll(originalProperties); } originalProperties = properties; } return originalProperties; } CloudHubArtifactDeployer(Deployment deployment, DeployerLog log);  CloudHubArtifactDeployer(Deployment deployment, CloudHubClient cloudHubClient, DeployerLog log); void setDeploymentVerification(DeploymentVerification deploymentVerification); @Override void deployDomain(); @Override void undeployDomain(); @Override void deployApplication(); @Override void undeployApplication(); String getApplicationName();  }