Examples of stopApplicationScope()


Examples of org.apache.webbeans.cditest.CdiTestContainer.stopApplicationScope()

        assertAll(cdi, 0);

        cdi.stopRequestScope();
        cdi.stopSessionScope();
        cdi.stopApplicationScope();
        cdi.startRequestScope();
        cdi.startSessionScope();
        cdi.startApplicationScope();

        assertAll(cdi, 0);
View Full Code Here

Examples of org.apache.webbeans.cditest.CdiTestContainer.stopApplicationScope()

        final Class<?> type = type();
        final TwoSeconds bean = TwoSeconds.class.cast(beanManager.getReference(beanManager.resolve(beanManager.getBeans(type)), type, null));

        bean.twoSeconds();

        container.stopApplicationScope();
        container.shutdownContainer();

        final Counter perf = Repository.INSTANCE.getCounter(new Counter.Key(Role.PERFORMANCES, type.getName() + ".twoSeconds"));
        assertNotNull(perf);
        assertEquals(2000, TimeUnit.NANOSECONDS.toMillis((int) perf.getMax()), 200);
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.