@Test public void undeployApplicationTest() throws DeploymentException { cloudHubArtifactDeployer.undeployApplication(); verify(clientMock, times(1)).stopApplications(FAKE_APPLICATION_NAME); verify(clientMock, times(1)).deleteApplications(FAKE_APPLICATION_NAME); }
@Override public void undeployApplication() throws DeploymentException { log.info("Stopping application " + deployment.getApplicationName()); client.stopApplications(deployment.getApplicationName()); log.info("Deleting application " + deployment.getApplicationName()); client.deleteApplications(deployment.getApplicationName()); }
CloudHubArtifactDeployer implements ArtifactDeployer { @Override public void undeployApplication() throws DeploymentException { log.info("Stopping application " + deployment.getApplicationName()); client.stopApplications(deployment.getApplicationName()); log.info("Deleting application " + deployment.getApplicationName()); client.deleteApplications(deployment.getApplicationName()); } }
CloudHubArtifactDeployer implements ArtifactDeployer { @Override public void undeployApplication() throws DeploymentException { log.info("Stopping application " + deployment.getApplicationName()); client.stopApplications(deployment.getApplicationName()); log.info("Deleting application " + deployment.getApplicationName()); client.deleteApplications(deployment.getApplicationName()); } CloudHubArtifactDeployer(Deployment deployment, DeployerLog log);  CloudHubArtifactDeployer(Deployment deployment, CloudHubClient cloudHubClient, DeployerLog log); }
CloudHubArtifactDeployer implements ArtifactDeployer { @Override public void undeployApplication() throws DeploymentException { log.info("Stopping application " + deployment.getApplicationName()); client.stopApplications(deployment.getApplicationName()); log.info("Deleting application " + deployment.getApplicationName()); client.deleteApplications(deployment.getApplicationName()); } 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 { @Override public void undeployApplication() throws DeploymentException { log.info("Stopping application " + deployment.getApplicationName()); client.stopApplications(deployment.getApplicationName()); log.info("Deleting application " + deployment.getApplicationName()); client.deleteApplications(deployment.getApplicationName()); } 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();  }