コード例 #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);
  }