Examples of TestScopeApplicationContext


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

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

                "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

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

     */
    @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

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

                "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

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

     */
    @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

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

     */
    @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

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

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

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

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

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

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

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

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

        TestScopeApplicationContext testScopeApplicationContext = applicationContextInstance.get();
        return testScopeApplicationContext.getApplicationContext();
    }
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.