public void run(RegressionEnvironment env) { try { env.deployment().undeploy("nofound"); fail(); } catch (EPUndeployNotFoundException ex) { SupportMessageAssertUtil.assertMessage(ex.getMessage(), "Deployment id 'nofound' cannot be found"); } catch (EPUndeployException t) { fail(); } } }
private void undeployRemoveInternal(String deploymentId, UndeploymentOptions options) throws EPUndeployException { DeploymentInternal deployment = services.getDeploymentLifecycleService().getDeploymentById(deploymentId); if (deployment == null) { throw new EPUndeployNotFoundException("Deployment id '" + deploymentId + "' cannot be found");