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

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

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

    super.setRuntimeDataService(runtimeDataService);
  }
예제 #9
0
  @Inject
  @Override
  public void setManagerFactory(RuntimeManagerFactory managerFactory) {

    super.setManagerFactory(managerFactory);
  }
예제 #10
0
  @Inject
  @Override
  public void setBpmn2Service(DefinitionService bpmn2Service) {

    super.setBpmn2Service(bpmn2Service);
  }