@Test public void shouldRunDeploymentPrepareOnNodeAndAddHandler() throws Exception { DeployableServiceSpec spec = models.getAirlineSpec(); DeployableService airlineService = models.getAirlineService(); InstanceDeploymentPreparer instanceDeploymentPreparer = new InstanceDeploymentPreparer(spec, airlineService, node); instanceDeploymentPreparer.prepareDeployment(); verify(nodePreparer).prepareNodeForDeployment(spec.getPackageUri(), "jar"); verify(nodeUpdater).addHandler(any(InstanceCreatorUpdateHandler.class)); }
public void prepareDeployment() throws PrepareDeploymentFailedException { runDeploymentPrepare(); scheduleHandler(); }
InstanceDeploymentPreparer { public void prepareDeployment() throws PrepareDeploymentFailedException { runDeploymentPrepare(); scheduleHandler(); } }
InstanceDeploymentPreparer { public void prepareDeployment() throws PrepareDeploymentFailedException { runDeploymentPrepare(); scheduleHandler(); } InstanceDeploymentPreparer(DeployableServiceSpec newSpec, DeployableService service, CloudNode node); }
InstanceDeploymentPreparer { public void prepareDeployment() throws PrepareDeploymentFailedException { runDeploymentPrepare(); scheduleHandler(); } InstanceDeploymentPreparer(DeployableServiceSpec newSpec, DeployableService service, CloudNode node); void prepareDeployment(); }
InstanceDeploymentPreparer { public void prepareDeployment() throws PrepareDeploymentFailedException { runDeploymentPrepare(); scheduleHandler(); } InstanceDeploymentPreparer(DeployableServiceSpec newSpec, DeployableService service, CloudNode node); void prepareDeployment();  }