Package org.jboss.arquillian.spi.event.suite

Examples of org.jboss.arquillian.spi.event.suite.After


   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      try
      {
         contextLifecycle.destroyTestContext(testInstance);
      }
      finally
View Full Code Here


   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      activeContext.pop();
      contextLifecycle.destroyTestContext(testInstance);
   }
View Full Code Here

   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      try
      {
         contextLifecycle.destroyTestContext(testInstance);
      }
      finally
View Full Code Here

   }

   @Test
   public void shouldInvokeAfterInContainerDeploymentContext() throws Exception
   {
      fire(new After(this, testMethod()));
     
      assertEventFiredInContext(After.class, ContainerContext.class);
      assertEventFiredInContext(After.class, DeploymentContext.class);
   }
View Full Code Here

   public void after(Object testInstance, Method testMethod) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      contextLifecycle.createRestoreTestContext(testInstance).fire(new After(testInstance, testMethod));
      try
      {
         contextLifecycle.destroyTestContext(testInstance);
      }
      finally
View Full Code Here

   public void after(Object testInstance, Method testMethod, LifecycleMethodExecutor executor) throws Exception
   {
      Validate.notNull(testInstance, "TestInstance must be specified");
      Validate.notNull(testMethod, "TestMethod must be specified");

      manager.fire(new After(testInstance, testMethod, executor));
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spi.event.suite.After

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.