Package org.jboss.arquillian.test.spi.context

Examples of org.jboss.arquillian.test.spi.context.TestContext


      }
   }

   public void createTestContext(@Observes(precedence=100) EventContext<TestEvent> context)
   {
      TestContext testContext = this.testContextInstance.get();
      try
      {
         testContext.activate(context.getEvent().getTestInstance());
         context.proceed();
      }
      finally
      {
         testContext.deactivate();
      }
   }
View Full Code Here


      }
   }

   public void createTestContext(@Observes(precedence = 100) EventContext<TestEvent> context)
   {
      TestContext testContext = this.testContextInstance.get();
      try
      {
         testContext.activate(context.getEvent().getTestInstance());
         context.proceed();
      }
      finally
      {
         testContext.deactivate();
         if (After.class.isAssignableFrom(context.getEvent().getClass()))
         {
            testContext.destroy(context.getEvent().getTestInstance());
         }
      }
   }
View Full Code Here

      final SuiteContext suiteContext = suiteContextInst.get();
     
      final ClassContext classContext = classContextInst.get();
      final Class<?> classContextId = classContext.getActiveId();
     
      final TestContext testContext = testContextInst.get();
      final Object testContextId = testContext.getActiveId();
     
      ContainerMethodExecutor executor = ((Protocol)protocol.getProtocol()).getExecutor(
            protocolConfiguration,
            protocolMetadata.get(), new CommandCallback()
            {
               @Override
               public void fired(Command<?> event)
               {
                  applicationContext.activate();
                  suiteContext.activate();
                  classContext.activate(classContextId);
                  testContext.activate(testContextId);
                  try
                  {
                     remoteEvent.fire(event);
                  }
                  finally
                  {
                     testContext.deactivate();
                     classContext.deactivate();
                     suiteContext.deactivate();
                     applicationContext.deactivate();
                  }
               }
View Full Code Here

      }
   }

   public void createTestContext(@Observes(precedence=100) EventContext<TestEvent> context)
   {
      TestContext testContext = this.testContextInstance.get();
      try
      {
         testContext.activate(context.getEvent().getTestInstance());
         context.proceed();
      }
      finally
      {
         testContext.deactivate();
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.test.spi.context.TestContext

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.