use of org.kie.workbench.common.screens.datasource.management.model.DataSourceDeploymentInfo in project kie-wb-common by kiegroup.
the class AbstractDefChangeHandlerTest method verifyUnDeployed.
/**
* Verifies that the given definition has been un-deployed.
*/
protected void verifyUnDeployed(Def def) throws Exception {
// the definition should have been un-deployed.
if (def instanceof DataSourceDef) {
DataSourceDeploymentInfo deploymentInfo = runtimeManager.getDataSourceDeploymentInfo(def.getUuid());
// is deployed by construction
assertNotNull(deploymentInfo);
verify(runtimeManager, times(1)).unDeployDataSource(deploymentInfo, UnDeploymentOptions.forcedUnDeployment());
} else {
DriverDeploymentInfo deploymentInfo = runtimeManager.getDriverDeploymentInfo(def.getUuid());
// is deployed by construction
assertNotNull(deploymentInfo);
verify(runtimeManager, times(1)).unDeployDriver(deploymentInfo, UnDeploymentOptions.forcedUnDeployment());
}
}
Aggregations