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

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


     */
    @Test
    public void testGetRemoteConfiguration() throws Exception {
        instance = mock(AbstractApplicationContextProducer.class);

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

        Instance<SpringIntegrationConfiguration> mockRemoteConfigurationInstance = mock(Instance.class);
        when(mockRemoteConfigurationInstance.get()).thenReturn(remoteConfiguration);
        TestReflectionHelper.setFieldValue(instance, "remoteConfiguration", mockRemoteConfigurationInstance);

        doCallRealMethod().when(instance).getRemoteConfiguration();

        SpringIntegrationConfiguration result = instance.getRemoteConfiguration();
        assertNotNull("The result was null.", result);
    }
View Full Code Here


    @Before
    public void setUp() throws Exception {

        instance = new XmlRemoteApplicationContextProducer();

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

        setRemoteConfiguration();
    }
View Full Code Here

    public void testCreateApplicationContextCustomContextConfiguration() throws Exception {
        TestClass testClass = new TestClass(XmlAnnotatedClass.class);

        Map<String, String> properties = new HashMap<String, String>();
        properties.put("customContextClass", "org.springframework.context.support.ClassPathXmlApplicationContext");
        remoteConfiguration = new SpringIntegrationConfiguration(properties);

        setRemoteConfiguration();

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

    public void testCreateApplicationContextCustomContextConfigurationError() throws Exception {
        TestClass testClass = new TestClass(XmlAnnotatedClass.class);

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

        setRemoteConfiguration();

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

    public void testCreateApplicationContextCustomContextConfigurationAndAnnotation() throws Exception {
        TestClass testClass = new TestClass(XmlAnnotatedCustomContextClass.class);

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

        setRemoteConfiguration();

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

    @Before
    public void setUp() throws Exception {

        instance = new WebApplicationContextProducer();

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

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

    @Before
    public void setUp() throws Exception {

        instance = new CustomRemoteApplicationContextProducer();

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

        setRemoteConfiguration();
    }
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

     *
     * @param beforeSuiteEvent the event fired before execution of the test suite
     */
    public void initConfiguration(@Observes ArquillianDescriptor descriptor) {

        SpringIntegrationConfiguration config = getConfiguration(descriptor);

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

     */
    private SpringIntegrationConfiguration getConfiguration(ArquillianDescriptor descriptor) {

        Map<String, String> properties = getExtensionProperties(descriptor);

        return new SpringIntegrationConfiguration(properties);
    }
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.