@Test public void undeployTest() throws DeploymentException { doNothing().when(deployerSpy).undeploy(); defaultDeployer.undeploy(); verify(deployerSpy, times(1)).undeploy(); verify(deployerSpy, times(0)).deploy(); }
@Override public void undeploy() throws DeploymentException { log.info(String.format("Undeploying artifact %s", applicationName)); deployer.undeploy(); log.info(String.format("Artifact %s undeployed", applicationName)); }
DefaultDeployer implements Deployer { @Override public void undeploy() throws DeploymentException { log.info(String.format("Undeploying artifact %s", applicationName)); deployer.undeploy(); log.info(String.format("Artifact %s undeployed", applicationName)); } }
DefaultDeployer implements Deployer { @Override public void undeploy() throws DeploymentException { log.info(String.format("Undeploying artifact %s", applicationName)); deployer.undeploy(); log.info(String.format("Artifact %s undeployed", applicationName)); } DefaultDeployer(Deployment deployment, DeployerLog log);  DefaultDeployer(Deployer deployer, String applicationName, DeployerLog log); }
DefaultDeployer implements Deployer { @Override public void undeploy() throws DeploymentException { log.info(String.format("Undeploying artifact %s", applicationName)); deployer.undeploy(); log.info(String.format("Artifact %s undeployed", applicationName)); } DefaultDeployer(Deployment deployment, DeployerLog log);  DefaultDeployer(Deployer deployer, String applicationName, DeployerLog log); @Override void deploy(); @Override void undeploy(); }
DefaultDeployer implements Deployer { @Override public void undeploy() throws DeploymentException { log.info(String.format("Undeploying artifact %s", applicationName)); deployer.undeploy(); log.info(String.format("Artifact %s undeployed", applicationName)); } DefaultDeployer(Deployment deployment, DeployerLog log);  DefaultDeployer(Deployer deployer, String applicationName, DeployerLog log); @Override void deploy(); @Override void undeploy();  }