Examples of stopContainer()


Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        Assert.assertEquals(ContainerState.VALIDATED, Container.instance().getState());
        Assert.assertTrue(Container.available());
        container.getBootstrap().endInitialization();
        Assert.assertTrue(Container.available());
        Assert.assertEquals(ContainerState.INITIALIZED, Container.instance().getState());
        container.stopContainer();
        Assert.assertFalse(Container.available());
    }

}
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

                    manager.createCreationalContext(testBean));
        } catch (RuntimeException e) {
            // Ignore, expected
        }

        container.stopContainer();
        verifyThreadLocals();
    }

    @Test
    public void ensureNoThreadLocalLeakOnInjectionPoints() throws Exception {
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

                testBean,
                Baz.class,
                manager.createCreationalContext(testBean)));
        baz.getBar().ping();

        container.stopContainer();
        verifyThreadLocals();
    }

    /**
     * Get the bean manager, assuming a flat deployment structure
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

            Assert.assertTrue(warBeanManager.getEnabled().getAlternativeClasses().isEmpty());
            Assert.assertFalse(jar1BeanManager.getEnabled().getAlternativeClasses().isEmpty());
            Assert.assertTrue(jar2BeanManager.getEnabled().getAlternativeClasses().isEmpty());
        } finally {
            if (container != null) {
                container.stopContainer();
            }
        }
    }

    /*
 
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

            Assert.assertTrue(warBeanManager.getEnabled().getAlternativeClasses().isEmpty());
            Assert.assertFalse(jar1BeanManager.getEnabled().getAlternativeClasses().isEmpty());
            Assert.assertFalse(jar2BeanManager.getEnabled().getAlternativeClasses().isEmpty());
        } finally {
            if (container != null) {
                container.stopContainer();
            }
        }
    }

    /*
 
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        foo2 = (Foo) beanManager2.getReference(fooBean2, Foo.class, beanManager2.createCreationalContext(fooBean2));
        assert foo2.getName().equals("container 2");
        SwitchableSingletonProvider.use(1);
        container1.stopContainer();
        SwitchableSingletonProvider.use(2);
        container2.stopContainer();
        SingletonProvider.reset();
    }

}
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        use(2);
        Foo foo2 = (Foo) beanManager2.getReference(fooBean2, Foo.class, beanManager2.createCreationalContext(fooBean2));
        assert foo2.getName().equals("container 1");
        use(2);
        container2.stopContainer();
        use(1);
        container1.stopContainer();
    }

    @Test(description = "A simple test to check conversation replication")
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        Conversation conversation2 = Utils.getReference(beanManager2, Conversation.class);
        assert !conversation2.isTransient();

        use(2);
        container2.stopContainer();
        use(1);
        container1.stopContainer();
    }

    @Test
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        assert stable1.getFodder().getAmount() == 11;
        use(1);
        container1.stopContainer();
        use(2);
        container2.stopContainer();
    }

    @Test
    public void testVariableBeanDeploymentStructure() throws Exception {
        // NB This is not a valid deployment scenario for a cluster, but it does allow us to test bean ids neatly!
View Full Code Here

Examples of org.jboss.arquillian.container.weld.ee.embedded_1_1.mock.TestContainer.stopContainer()

        assert stable2.getFodder().getAmount() == stable1.getFodder().getAmount();
        assert stable2.getHorse().getName() == null;
        use(1);
        container1.stopContainer();
        use(2);
        container2.stopContainer();
    }

}
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.