Package com.volantis.mcs.runtime.configuration

Examples of com.volantis.mcs.runtime.configuration.MarinerConfiguration


        digester.register(publicId, entityURL);
    }

    public MarinerConfiguration buildConfiguration()
            throws ConfigurationException {
        MarinerConfiguration config;
        try {
            config = (MarinerConfiguration) digester.parse(inputSource);
        } catch (Exception e) {
            throw new ConfigurationException(
                        exceptionLocalizer.format("config-parse-error"), e);
View Full Code Here


        }
        buffer.append("</pipeline-configuration>");

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(buffer.toString());
        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        assertNotNull("MarinerConfig should not be null", marinerConfig);

        return marinerConfig;
    }
View Full Code Here

        String[] localNames = new String[] {"element1", "element2"};
        String[] namespaces = new String[] {"namespace1", "namespace2"};
        String[] pluginNames = new String[] {"rule", "process"};
        String[] pluginClasses = new String[] {"com.volantis.Rule",
                                               "com.volantis.Process"};
        MarinerConfiguration config = createMarinerConfiguration(
                    localNames,
                    namespaces,
                    pluginNames,
                    pluginClasses);

        MarkupExtensionsConfiguration extensionsConfig =
                    config.getPipelineConfiguration().
                        getMarkupExtensionsConfiguration();
        assertNotNull("markup-extensions element should have been parsed",
                      extensionsConfig);

View Full Code Here

     * instance is NOT created if the
     * <pipeline-configuration>/<markup-extensions> element is NOT present.
     * @throws Exception if an error occurs.
     */
    public void testMarkupExtensionsIsNotExtracted() throws Exception {
        MarinerConfiguration config = createMarinerConfiguration(null,
                                                                 null,
                                                                 null,
                                                                 null);
        MarkupExtensionsConfiguration extensionsConfig =
                    config.getPipelineConfiguration().
                        getMarkupExtensionsConfiguration();

        assertNull("markup-extensions element should NOT have been parsed",
                   extensionsConfig);
    }
View Full Code Here

                     "</pipeline-configuration>";

        TestXmlConfigurationBuilder configBuilder =
            new TestXmlConfigurationBuilder(xml);

        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        assertEquals("debug directory is incorrect",
                     "dir" + File.separator,
                     marinerConfig.getPipelineConfiguration().
                        getDebugOutputDirectory());
    }
View Full Code Here

                "</pipeline-configuration>";

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(xml);

        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        // ensure that File.separator has not been appended to debug directory
        assertEquals("debug directory is incorrect",
                     "dir" ,
                     marinerConfig.getPipelineConfiguration().
                     getDebugOutputDirectory());
    }
View Full Code Here

                     "</pipeline-configuration>";

        TestXmlConfigurationBuilder configBuilder =
            new TestXmlConfigurationBuilder(xml);

        MarinerConfiguration marinerConfig = configBuilder.buildConfiguration();
        assertNull("expected null debug directory",                      
                     marinerConfig.getPipelineConfiguration().
                        getDebugOutputDirectory());
    }
View Full Code Here

        //System.out.println(input);

        TestXmlConfigurationBuilder configBuilder =
            new TestXmlConfigurationBuilder(input);

        MarinerConfiguration actualConfig = configBuilder.buildConfiguration();
        assertNotNull(actualConfig);

        final WebDriverConfiguration config =
            actualConfig.getPipelineConfiguration().getWebDriverConfiguration();


        if (mock != null) {
            assertNotNull("Actual configuration should not be null",
                          config);

            Map expectedMap = (Map)getPrivateObject(mock, "proxies");
            Map actualMap = (Map)getPrivateObject(
                actualConfig.getPipelineConfiguration().
                    getWebDriverConfiguration(),
                "proxies");

            String result = verifyContentsOfMap(expectedMap, actualMap);
            if (result != null) {
                fail(result);
            }

            expectedMap = (Map)getPrivateObject(mock, "scriptModules");
            actualMap = (Map)getPrivateObject(
                actualConfig.getPipelineConfiguration().
                    getWebDriverConfiguration(),
                "scriptModules");
            result = verifyContentsOfMap(expectedMap, actualMap);
            if (result != null) {
                fail(result);
View Full Code Here

    public void doTest(CacheValue[] values) throws ConfigurationException {
        StringBuffer doc = createXMLCache(values);

        TestXmlConfigurationBuilder configBuilder =
            new TestXmlConfigurationBuilder(doc.toString());
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        Iterator cacheList = config.getPipelineConfiguration().
            getCacheOperationConfiguration().getCacheConfigurations();
        if (values != null) {
            assertNotNull("cacheConfiguration", cacheList);
            int cacheSize = 0;
            int nonNullInputSize = 0;
View Full Code Here

                new PolicyReferenceResolverMock("referenceResolverMock",
                        expectations);
        referenceResolverMock.expects.
                resolveQuotedTextExpression(fragmentName).returns(null);
        MarinerApplication application = new MarinerServletApplication();
        MarinerConfiguration config = new MarinerConfiguration();
        Volantis volantis = getVolantis();
        PrivateAccessor.setField(volantis, "marinerConfig", config);
        PrivateAccessor.invoke(volantis, "initializeURLRewriters",
                new Class [] {MarinerApplication.class},
                new Object [] { application });
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.MarinerConfiguration

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.