Package org.jboss.arquillian.spi

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


      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

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

   }
  
   public void beforeSuite() throws Exception
   {
      Context suiteContext = contextLifecycle.createRestoreSuiteContext();
      suiteContext.fire(new BeforeSuite());
      activeContext.push(suiteContext);
   }

   public void afterSuite() throws Exception
   {
View Full Code Here

   public void beforeClass(Class<?> testClass) throws Exception
   {
      Validate.notNull(testClass, "TestClass must be specified");
     
      Context classContext = contextLifecycle.createRestoreClassContext(testClass);
      classContext.fire(new BeforeClass(testClass));
      activeContext.push(classContext);
   }

   public void afterClass(Class<?> testClass) throws Exception
   {
View Full Code Here

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

      Context classContext = contextLifecycle.createRestoreClassContext(testClass);
      try
      {
         BeforeClass event = new BeforeClass(testClass);
         classContext.add(TestClass.class, event.getTestClass());
         classContext.fire(event);
      }
      finally
      {
         activeContext.push(classContext);
      }
View Full Code Here

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

      BeforeClass event = new BeforeClass(testClass);
      Context classContext = contextLifecycle.createRestoreClassContext(testClass);
      try
      {
         classContext.add(TestClass.class, event.getTestClass());
         classContext.fire(new BeforeClass(testClass));
      }
      finally
      {
         activeContext.push(classContext);
      }
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.