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

Examples of org.jboss.arquillian.test.spi.event.suite.AfterSuite


        SeleniumServer server = getManager().getContext(SuiteContext.class).getObjectStore().get(SeleniumServer.class);

        Assert.assertNotNull("Selenium configuration object is present in context", server);
        assertEventFired(SeleniumServerStarted.class, 1);

        fire(new AfterSuite());

        assertEventFired(SeleniumServerStopped.class, 1);
    }
View Full Code Here


        Assert.assertTrue("simple-extension.js contains doTypeRepeated(locator,text) function",
                simpleExtension.contains("doTypeRepeated"));

        assertEventFired(SeleniumServerStarted.class, 1);

        fire(new AfterSuite());

        assertEventFired(SeleniumServerStopped.class, 1);
    }
View Full Code Here

        InstanceProducer<RemoteTestScopeApplicationContext> mockApplicationContext = mock(InstanceProducer.class);
        when(mockApplicationContext.get()).thenReturn(containerTestScopeApplicationContext);
        TestReflectionHelper.setFieldValue(instance, "applicationContextInstance", mockApplicationContext);

        instance.afterSuite(new AfterSuite());

        verify(applicationContextDestroyer).destroyApplicationContext(any(TestScopeApplicationContext.class));
    }
View Full Code Here

        InstanceProducer<RemoteTestScopeApplicationContext> mockApplicationContext = mock(InstanceProducer.class);
        when(mockApplicationContext.get()).thenReturn(containerTestScopeApplicationContext);
        TestReflectionHelper.setFieldValue(instance, "applicationContextInstance", mockApplicationContext);

        instance.afterSuite(new AfterSuite());

        verify(applicationContextDestroyer).destroyApplicationContext(any(TestScopeApplicationContext.class));
    }
View Full Code Here

      manager.fire(new BeforeSuite());
   }

   public void afterSuite() throws Exception
   {
      manager.fire(new AfterSuite());
   }
View Full Code Here

        InstanceProducer<ClientTestScopeApplicationContext> mockApplicationContext = mock(InstanceProducer.class);
        when(mockApplicationContext.get()).thenReturn(ClientTestScopeApplicationContext);
        TestReflectionHelper.setFieldValue(instance, "applicationContextInstance", mockApplicationContext);

        instance.afterSuite(new AfterSuite());

        verify(applicationContextDestroyer).destroyApplicationContext(any(TestScopeApplicationContext.class));
    }
View Full Code Here

            try {
                manager.fire(new ProcessHttpRequest());
            } finally {
                manager.fire(new AfterRequest(request, response));
                manager.fire(new AfterSuite());

                manager.shutdown();
            }

        } catch (ClassNotFoundException e) {
View Full Code Here

        @Inject
        private transient Event<AfterSuite> afterSuite;

        @Override
        public void perform() {
            afterSuite.fire(new AfterSuite());
        }
View Full Code Here

   }

   @Test
   public void shouldStopSuiteContainers() throws Exception
   {
      fire(new AfterSuite());

      assertEventFired(StopSuiteContainers.class, 1);
   }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.test.spi.event.suite.AfterSuite

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.