Examples of activate()


Examples of org.jboss.arquillian.impl.core.spi.context.ClassContext.activate()

      ClassContext classContext = manager.getContext(ClassContext.class);

      try
      {
         suiteContext.activate();
         classContext.activate(this.getClass());
        
         Object testObject = new Object();
        
         manager.bind(SuiteScoped.class, Object.class, testObject);
        
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.context.ContainerContext.activate()

               context.getObjectStore().get(Object.class));
        
         ContainerContext containerContext = manager.getContext(ContainerContext.class);
         Assert.assertFalse(containerContext.isActive());
        
         containerContext.activate("");
         try
         {
            Assert.assertNotNull(
                  "Should have set a Double in container scope",
                  containerContext.getObjectStore().get(Double.class));
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.context.DeploymentContext.activate()

   {
      DeploymentContext deploymentContext = this.deploymentContext.get();
      try
      {
         DeploymentEvent event = context.getEvent();
         deploymentContext.activate(event.getDeployment());

         context.proceed();
      }
      finally
      {
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.context.SuiteContext.activate()

         .extension(TestObserver.class).create();

      SuiteContext context = manager.getContext(SuiteContext.class);
      try
      {
         context.activate();
        
         InstanceProducer<Object> instance = InstanceImpl.of(Object.class, SuiteScoped.class, manager);
         instance.set(new Object());

         Assert.assertTrue(manager.getExtension(TestObserver.class).wasCalled);
View Full Code Here

Examples of org.jboss.arquillian.impl.core.spi.context.TestContext.activate()

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

Examples of org.jboss.arquillian.test.spi.context.ClassContext.activate()

   public void createClassContext(@Observes(precedence=100) EventContext<ClassEvent> context)
   {
      ClassContext classContext = this.classContextInstance.get();
      try
      {
         classContext.activate(context.getEvent().getTestClass().getJavaClass());
         testClassProducer.set(context.getEvent().getTestClass());
         context.proceed();
      }
      finally
      {
View Full Code Here

Examples of org.jboss.arquillian.test.spi.context.SuiteContext.activate()

   public void createSuiteContext(@Observes(precedence=100) EventContext<SuiteEvent> context)
   {
      SuiteContext suiteContext = this.suiteContextInstance.get();
      try
      {
         suiteContext.activate();
         context.proceed();
      }
      finally
      {
         suiteContext.deactivate();
View Full Code Here

Examples of org.jboss.arquillian.test.spi.context.TestContext.activate()

   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

Examples of org.jboss.arquillian.transaction.spi.context.TransactionContext.activate()

            if (transactionMode != TransactionMode.DISABLED) {
                transactionProvider = getTransactionProvider();

                // creates the transaction context
                TransactionContext transactionContext = transactionContextInstance.get();
                transactionContext.activate();

                lifecycleEvent.fire(new BeforeTransactionStarted());

                transactionProvider.beginTransaction(new TransactionalTestImpl(getTransactionManager(beforeTest)));
View Full Code Here

Examples of org.jboss.arquillian.warp.spi.context.RequestContext.activate()

    @Inject
    private Instance<RequestContext> requestContextInstance;

    public void createRequestContext(@Observes(precedence = 100) EventContext<BeforeRequest> context) {
        RequestContext requestContext = this.requestContextInstance.get();
        requestContext.activate();
        context.proceed();
    }

    public void destroyRequestContext(@Observes(precedence = 100) EventContext<AfterRequest> context) {
        RequestContext requestContext = this.requestContextInstance.get();
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.