Examples of fire()


Examples of org.jboss.arquillian.core.spi.Manager.fire()

            try {
                manager.fire(new ProcessHttpRequest());
            } finally {
                manager.fire(new AfterRequest(request, response));
                manager.fire(new AfterSuite());

                manager.shutdown();
            }

        } catch (ClassNotFoundException e) {
View Full Code Here

Examples of org.jboss.arquillian.impl.context.TestContext.fire()

      Validate.notNull(testMethod, "TestMethod must be specified");
     
      TestContext testContext = contextLifecycle.createRestoreTestContext(testInstance);
      try
      {
         testContext.fire(new Before(testInstance, testMethod));
      }
      finally
      {
         activeContext.push(testContext);
      }
View Full Code Here

Examples of org.jboss.arquillian.impl.context.TestContext.fire()

   {
      Validate.notNull(testMethodExecutor, "TestMethodExecutor must be specified");
     
      Test test = new Test(testMethodExecutor);
      TestContext context = contextLifecycle.createRestoreTestContext(testMethodExecutor.getInstance());
      context.fire(test);
      return context.get(TestResult.class);
   }
}
View Full Code Here

Examples of org.jboss.arquillian.impl.core.ManagerImpl.fire()

         .extension(TestObserver.class).create();
     
      manager.getContext(ApplicationContextImpl.class).getObjectStore()
         .add(Object.class, new Object());
     
      manager.fire("test event");
     
      Assert.assertTrue(manager.getExtension(TestObserver.class).wasCalled);
   }
  
   private static class TestObserver
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.Manager.fire()

   public void shouldExecuteProducersOnSameEventBeforeConsumers() throws Exception
   {
      Manager manager = ManagerBuilder.from()
                  .extensions(ConsumerOne.class, ProducerOne.class, ProducerTwo.class).create();
     
      manager.fire("test");
     
      Assert.assertEquals("ProducerOne", callOrder.get(0));
      Assert.assertEquals("ProducerTwo", callOrder.get(1));
      Assert.assertEquals("ConsumerOne", callOrder.get(2));
   }
View Full Code Here

Examples of org.jboss.arquillian.spi.Context.fire()

   public void beforeSuite() throws Exception
   {
      Context suiteContext = contextLifecycle.createRestoreSuiteContext();
      try
      {
         suiteContext.fire(new BeforeSuite());
      }
      finally
      {
         activeContext.push(suiteContext);        
      }
View Full Code Here

Examples of org.jboss.arquillian.spi.Context.fire()

      Validate.notNull(testClass, "TestClass must be specified");
     
      Context classContext = contextLifecycle.createRestoreClassContext(testClass);
      try
      {
         classContext.fire(new BeforeClass(testClass));
      }
      finally
      {
         activeContext.push(classContext);
      }
View Full Code Here

Examples of org.jboss.arquillian.spi.Context.fire()

   public void fire(Event event)
   {
      Context parent = getParentContext();
      if(parent != null)
      {
         parent.fire(event);
      }
      getEventManager().fire(this, event);
   }
}
View Full Code Here

Examples of org.jbpm.pvm.internal.model.ExecutionImpl.fire()

      ExecutionImpl propagatingExecution = execution;
      if (activity.isLocalScope()) {
        propagatingExecution = execution.createScope(activity);
      }

      propagatingExecution.fire(Event.START, activity, AtomicOperation.TRANSITION_START_ACTIVITY);
    }
  }
 
  public MessageImpl<?> createAsyncMessage(ExecutionImpl execution) {
    throw new UnsupportedOperationException("please implement me");
View Full Code Here

Examples of org.jbpm.wire.WireContext.fire()

    if (mustBeLogged(exception)) {
      log.log(Level.SEVERE, "exception in environment block:"+exception.getMessage(), exception);
    }

    WireContext wireContext = (WireContext) defaultEnvironment.getBlockContext();
    wireContext.fire(DefaultEnvironment.EVENT_EXCEPTION, this);
  }

  protected boolean mustBeLogged(Throwable exception) {
    if (hiddenExceptionTypes==null) {
      return true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.