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

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


    }

    public void handleBeforeClass(@Observes BeforeClass event) throws Throwable {
        List<T> setupTasks = getSetupTasks();
        if (!setupTasks.isEmpty()) {
            ClassContext classContext = classContextInstance.get();
            ObjectStore suiteStore = suiteContextInstance.get().getObjectStore();
            ObjectStore classStore = classContext.getObjectStore();
            SetupContext context = getSetupContext(suiteStore, classStore);
            for (T task : setupTasks) {
                task.beforeClass(context);
            }
        }
View Full Code Here


    }

    public void handleAfterClass(@Observes AfterClass event) throws Throwable {
        List<T> setupTasks = getSetupTasks();
        if (!setupTasks.isEmpty()) {
            ClassContext classContext = classContextInstance.get();
            ObjectStore classStore = classContext.getObjectStore();
            ObjectStore suiteStore = suiteContextInstance.get().getObjectStore();
            SetupContext context = getSetupContext(suiteStore, classStore);
            for (T task : setupTasks) {
                task.afterClass(context);
            }
View Full Code Here

        }
        if (active.containsKey(container.getName())) {
            return;
        }

        final ClassContext classContext = classContextInstance.get();
        if (classContext == null) {
            return;
        }

        final Class<?> currentClass = classContext.getActiveId();
        final ContainerClassHolder holder = new ContainerClassHolder(container.getName(), currentClass);

        ServerSetup setup = currentClass.getAnnotation(ServerSetup.class);
        if (setup == null) {
            return;
View Full Code Here

TOP

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

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.