@Test public void deployTest() throws DeploymentException { applicationDeployer.deploy(); verify(artifactDeployerMock).deployApplication(); verify(artifactDeployerMock, never()).undeployApplication(); verify(artifactDeployerMock, never()).deployDomain(); verify(artifactDeployerMock, never()).undeployDomain(); }
@Override public void deploy() throws DeploymentException { try { applicationDeployer.deployApplication(); } catch (ClientException e) { throw new DeploymentException("Failed to deploy application " + applicationDeployer.getApplicationName(), e); } }
CloudHubApplicationDeployer implements Deployer { @Override public void deploy() throws DeploymentException { try { applicationDeployer.deployApplication(); } catch (ClientException e) { throw new DeploymentException("Failed to deploy application " + applicationDeployer.getApplicationName(), e); } } }
CloudHubApplicationDeployer implements Deployer { @Override public void deploy() throws DeploymentException { try { applicationDeployer.deployApplication(); } catch (ClientException e) { throw new DeploymentException("Failed to deploy application " + applicationDeployer.getApplicationName(), e); } } CloudHubApplicationDeployer(Deployment deployment, DeployerLog log); protected  CloudHubApplicationDeployer(CloudHubArtifactDeployer deployer); }
CloudHubApplicationDeployer implements Deployer { @Override public void deploy() throws DeploymentException { try { applicationDeployer.deployApplication(); } catch (ClientException e) { throw new DeploymentException("Failed to deploy application " + applicationDeployer.getApplicationName(), e); } } CloudHubApplicationDeployer(Deployment deployment, DeployerLog log); protected  CloudHubApplicationDeployer(CloudHubArtifactDeployer deployer); @Override void deploy(); @Override void undeploy(); }
CloudHubApplicationDeployer implements Deployer { @Override public void deploy() throws DeploymentException { try { applicationDeployer.deployApplication(); } catch (ClientException e) { throw new DeploymentException("Failed to deploy application " + applicationDeployer.getApplicationName(), e); } } CloudHubApplicationDeployer(Deployment deployment, DeployerLog log); protected  CloudHubApplicationDeployer(CloudHubArtifactDeployer deployer); @Override void deploy(); @Override void undeploy();  }