Package org.jboss.arquillian.spring.integration.context

Examples of org.jboss.arquillian.spring.integration.context.TestScopeApplicationContext


     */
    @Test
    public void testCreateApplicationContextCustomContextClasses() {
        TestClass testClass = new TestClass(AnnotatedClassesCustomContextClass.class);

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
        assertNotNull("The application context hasn't been created.", result.getApplicationContext());
    }
View Full Code Here


                "invalid class name");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
        assertNotNull("The application context hasn't been created.", result.getApplicationContext());
    }
View Full Code Here

     */
    @Test
    public void testCreateApplicationContextCustomContextPackages() {
        TestClass testClass = new TestClass(AnnotatedPackagesCustomContextClass.class);

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
        assertNotNull("The application context hasn't been created.", result.getApplicationContext());
    }
View Full Code Here

                "invalid class name");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
        assertNotNull("The application context hasn't been created.", result.getApplicationContext());
    }
View Full Code Here

     */
    @Test
    public void testCreateApplicationContextClasses() throws Exception {
        TestClass testClass = new TestClass(ClientClassesAnnotatedClass.class);

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
        assertNotNull("The application context hasn't been created.", result.getApplicationContext());
    }
View Full Code Here

     */
    @Test
    public void testCreateApplicationContextPackages() throws Exception {
        TestClass testClass = new TestClass(ClientClassesAnnotatedClass.class);

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
        assertNotNull("The application context hasn't been created.", result.getApplicationContext());
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public TestScopeApplicationContext createApplicationContext(TestClass testClass) {

        return new TestScopeApplicationContext(getApplicationContext(testClass), true);
    }
View Full Code Here

     * {@inheritDoc}
     */
    @Override
    public TestScopeApplicationContext createApplicationContext(TestClass testClass) {

        return new TestScopeApplicationContext(getWebApplicationContext(testClass), false);
    }
View Full Code Here

     *
     * @return the application context
     */
    private ApplicationContext getApplicationContext() {

        TestScopeApplicationContext testScopeApplicationContext = applicationContextInstance.get();
        return testScopeApplicationContext.getApplicationContext();
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spring.integration.context.TestScopeApplicationContext

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.