@Test public void testDuplicatedDeployment() { assertNotNull(deploymentService); ((KModuleDeploymentService) deploymentService) .addListener( new DeploymentEventListener() { @Override public void onUnDeploy(DeploymentEvent event) {} @Override public void onDeploy(DeploymentEvent event) { throw new IllegalArgumentException("On purpose"); } }); DeploymentUnit deploymentUnit = new KModuleDeploymentUnit(GROUP_ID, ARTIFACT_ID, VERSION, "KBase-test", "ksession-test"); try { deploymentService.deploy(deploymentUnit); units.add(deploymentUnit); fail( "Deployment should fail due to post process failuer - see ThrowExceptionOnDeploymentEvent"); } catch (RuntimeException e) { } DeployedUnit deployedGeneral = deploymentService.getDeployedUnit(deploymentUnit.getIdentifier()); assertNull(deployedGeneral); assertFalse(RuntimeManagerRegistry.get().isRegistered(deploymentUnit.getIdentifier())); }
@Inject @PersistenceUnit(unitName = "org.jbpm.domain") @Override public void setEmf(EntityManagerFactory emf) { super.setEmf(emf); }
@PreDestroy @Override public void shutdown() { super.shutdown(); }
@PostConstruct public void onInit() { super.onInit(); }
@Inject public void setExecutorService(Instance<ExecutorService> executorService) { if (!executorService.isUnsatisfied()) { super.setExecutorService(executorService.get()); } }
@Inject @Override public void setFormManagerService(FormManagerService formManagerService) { super.setFormManagerService(formManagerService); }
@Inject @Override public void setIdentityProvider(IdentityProvider identityProvider) { super.setIdentityProvider(new IdentityProviderCDIWrapper(identityProvider, backupProviders)); }
@Inject @Override public void setRuntimeDataService(RuntimeDataService runtimeDataService) { super.setRuntimeDataService(runtimeDataService); }
@Inject @Override public void setManagerFactory(RuntimeManagerFactory managerFactory) { super.setManagerFactory(managerFactory); }
@Inject @Override public void setBpmn2Service(DefinitionService bpmn2Service) { super.setBpmn2Service(bpmn2Service); }