Package org.jboss.arquillian.spi

Examples of org.jboss.arquillian.spi.Context


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


   public void beforeClass(Class<?> testClass) throws Exception
   {
      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

      Validate.notNull(type, "Type must be specified");
     
      B instance = (B)objectStore.get(type);
      if(instance == null)
      {
         Context parentContext = getParentContext();
         if(parentContext != null)
         {
            instance = parentContext.get(type);
         }
      }
      return instance;
   }
View Full Code Here

   /* (non-Javadoc)
    * @see org.jboss.arquillian.spi.Context#fire(org.jboss.arquillian.spi.event.Event)
    */
   public void fire(Event event)
   {
      Context parent = getParentContext();
      if(parent != null)
      {
         parent.fire(event);
      }
      getEventManager().fire(this, event);
   }
View Full Code Here

      return activeContext.peek();
   }
  
   public void beforeSuite() throws Exception
   {
      Context suiteContext = contextLifecycle.createRestoreSuiteContext();
      suiteContext.fire(new BeforeSuite());
      activeContext.push(suiteContext);
   }
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);
   }
View Full Code Here

      return activeContext.peek();
   }

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

   public void beforeClass(Class<?> testClass) throws Exception
   {
      Validate.notNull(testClass, "TestClass must be specified");

      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

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

   public void beforeClass(Class<?> testClass) throws Exception
   {
      Validate.notNull(testClass, "TestClass must be specified");
     
      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

Related Classes of org.jboss.arquillian.spi.Context

Copyright © 2018 www.massapicom. 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.