Package org.jboss.arquillian.spring.integration.configuration

Examples of org.jboss.arquillian.spring.integration.configuration.SpringIntegrationConfiguration


     *
     * @param beforeSuite the event fired before execution of test suite
     */
    public void initRemoteConfiguration(@Observes BeforeSuite beforeSuite) {

        SpringIntegrationConfiguration config = loadConfigurationFromProperties();

        if (config != null) {

            remoteConfiguration.set(config);
        }
View Full Code Here


    @Before
    public void setUp() throws Exception {

        instance = new AnnotationRemoteApplicationContextProducer();

        remoteConfiguration = new SpringIntegrationConfiguration(Collections.<String, String>emptyMap());

        setUpRemoteConfiguration();
    }
View Full Code Here

        TestClass testClass = new TestClass(ClassesAnnotatedClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customAnnotationContextClass",
                "org.springframework.context.annotation.AnnotationConfigApplicationContext");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);

        assertNotNull("The result was null.", result);
        assertTrue("The application context should be marked as closable.", result.isClosable());
View Full Code Here

        TestClass testClass = new TestClass(ClassesAnnotatedClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customAnnotationContextClass",
                "invalid class name");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        instance.createApplicationContext(testClass);
    }
View Full Code Here

        TestClass testClass = new TestClass(PackagesAnnotatedClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customAnnotationContextClass",
                "org.springframework.context.annotation.AnnotationConfigApplicationContext");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);
View Full Code Here

        TestClass testClass = new TestClass(PackagesAnnotatedClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customAnnotationContextClass",
                "invalid class name");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        instance.createApplicationContext(testClass);
    }
View Full Code Here

        TestClass testClass = new TestClass(AnnotatedClassesCustomContextClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customAnnotationContextClass",
                "invalid class name");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);
View Full Code Here

        TestClass testClass = new TestClass(AnnotatedPackagesCustomContextClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customAnnotationContextClass",
                "invalid class name");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setUpRemoteConfiguration();

        TestScopeApplicationContext result = instance.createApplicationContext(testClass);
View Full Code Here

    @Test
    public void testBuildArchive() throws Exception {

        instance = mock(AbstractSpringEnricherArchiveAppender.class);

        SpringIntegrationConfiguration configuration = new SpringIntegrationConfiguration(
                Collections.<String, String>emptyMap());

        Instance<SpringIntegrationConfiguration> mockConfigurationInstance = mock(Instance.class);
        when(mockConfigurationInstance.get()).thenReturn(configuration);
        TestReflectionHelper.setFieldValue(instance, "configuration", mockConfigurationInstance);
View Full Code Here

     * @throws Exception if any error occurs
     */
    @Test
    public void testCreateAuxiliaryArchive() throws Exception {

        SpringIntegrationConfiguration configuration = new SpringIntegrationConfiguration(
                Collections.<String, String>emptyMap());

        Instance<SpringIntegrationConfiguration> mockConfigurationInstance = mock(Instance.class);
        when(mockConfigurationInstance.get()).thenReturn(configuration);
        TestReflectionHelper.setFieldValue(instance, "configuration", mockConfigurationInstance);
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.spring.integration.configuration.SpringIntegrationConfiguration

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.