Esempio n. 1
0
  @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()));
  }
Esempio n. 2
0
  @Inject
  @PersistenceUnit(unitName = "org.jbpm.domain")
  @Override
  public void setEmf(EntityManagerFactory emf) {

    super.setEmf(emf);
  }
Esempio n. 3
0
 @PreDestroy
 @Override
 public void shutdown() {
   super.shutdown();
 }
Esempio n. 4
0
 @PostConstruct
 public void onInit() {
   super.onInit();
 }
Esempio n. 5
0
 @Inject
 public void setExecutorService(Instance<ExecutorService> executorService) {
   if (!executorService.isUnsatisfied()) {
     super.setExecutorService(executorService.get());
   }
 }
Esempio n. 6
0
 @Inject
 @Override
 public void setFormManagerService(FormManagerService formManagerService) {
   super.setFormManagerService(formManagerService);
 }
Esempio n. 7
0
  @Inject
  @Override
  public void setIdentityProvider(IdentityProvider identityProvider) {

    super.setIdentityProvider(new IdentityProviderCDIWrapper(identityProvider, backupProviders));
  }
Esempio n. 8
0
  @Inject
  @Override
  public void setRuntimeDataService(RuntimeDataService runtimeDataService) {

    super.setRuntimeDataService(runtimeDataService);
  }
Esempio n. 9
0
  @Inject
  @Override
  public void setManagerFactory(RuntimeManagerFactory managerFactory) {

    super.setManagerFactory(managerFactory);
  }
Esempio n. 10
0
  @Inject
  @Override
  public void setBpmn2Service(DefinitionService bpmn2Service) {

    super.setBpmn2Service(bpmn2Service);
  }