@Test public void useDefinedUrl() throws Exception { String definedUrl = "myapp.test.com"; RuntimeFabricDeploymentSettings deploymentSettings = new RuntimeFabricDeploymentSettings(); deploymentSettings.setPublicUrl(definedUrl); runtimeFabricDeployment.setDeploymentSettings(deploymentSettings); Target target = requestBuilder.buildTarget(); assertThat("publicUrl is not the expected", target.deploymentSettings.getPublicUrl(), equalTo(definedUrl)); }
public Target buildTarget() throws DeploymentException { Target target = new Target(); target.setProvider(deployment.getProvider()); target.setTargetId(resolveTargetId()); RuntimeFabricDeploymentSettings resolvedDeploymentSettings = resolveDeploymentSettings(deployment.getDeploymentSettings()); target.setDeploymentSettings(resolvedDeploymentSettings); return target; }
RequestBuilder { public Target buildTarget() throws DeploymentException { Target target = new Target(); target.setProvider(deployment.getProvider()); target.setTargetId(resolveTargetId()); RuntimeFabricDeploymentSettings resolvedDeploymentSettings = resolveDeploymentSettings(deployment.getDeploymentSettings()); target.setDeploymentSettings(resolvedDeploymentSettings); return target; } }
RequestBuilder { public Target buildTarget() throws DeploymentException { Target target = new Target(); target.setProvider(deployment.getProvider()); target.setTargetId(resolveTargetId()); RuntimeFabricDeploymentSettings resolvedDeploymentSettings = resolveDeploymentSettings(deployment.getDeploymentSettings()); target.setDeploymentSettings(resolvedDeploymentSettings); return target; } protected  RequestBuilder(RuntimeFabricDeployment deployment, RuntimeFabricClient client); }
RequestBuilder { public Target buildTarget() throws DeploymentException { Target target = new Target(); target.setProvider(deployment.getProvider()); target.setTargetId(resolveTargetId()); RuntimeFabricDeploymentSettings resolvedDeploymentSettings = resolveDeploymentSettings(deployment.getDeploymentSettings()); target.setDeploymentSettings(resolvedDeploymentSettings); return target; } protected  RequestBuilder(RuntimeFabricDeployment deployment, RuntimeFabricClient client); DeploymentRequest buildDeploymentRequest(); Target buildTarget(); String getDeploymentId(Target target); DeploymentModify buildDeploymentModify(); }
RequestBuilder { public Target buildTarget() throws DeploymentException { Target target = new Target(); target.setProvider(deployment.getProvider()); target.setTargetId(resolveTargetId()); RuntimeFabricDeploymentSettings resolvedDeploymentSettings = resolveDeploymentSettings(deployment.getDeploymentSettings()); target.setDeploymentSettings(resolvedDeploymentSettings); return target; } protected  RequestBuilder(RuntimeFabricDeployment deployment, RuntimeFabricClient client); DeploymentRequest buildDeploymentRequest(); Target buildTarget(); String getDeploymentId(Target target); DeploymentModify buildDeploymentModify(); static final String ID; }