Package com.volantis.mcs.runtime.configuration

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


        }
       
        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        configBuilder.setAddDefaultLocalRepository(false);
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        LocalRepositoryConfiguration repos = config.getLocalRepository();
        assertNotNull("localRepositoryConnection", repos);
        if (value != null) {
      if ("jdbc".equals(value.type)) {
                final JDBCRepositoryConfiguration jdbcRepositoryConfig =
                        repos.getJDBCRepositoryConfiguration();
View Full Code Here


        System.err.println(doc);
        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        // Add the digester parsing rules for the MPS plugin.
        configBuilder.addApplicationPluginRuleSet(new MpsPluginRuleSet());
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        MpsPluginConfiguration mpsPlugin = (MpsPluginConfiguration)
                config.getApplicationPlugin("MPS");

        if (mpsValue != null) {
            assertNotNull("mps", mpsPlugin);
            assertEquals(mpsValue.internalBaseUrl,
                    mpsPlugin.getInternalBaseUrl());
View Full Code Here

       
        doc += "  </remote-policies> \n";
       
        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        RemotePoliciesConfiguration policies = config.getRemotePolicies();
        assertNotNull(policies);
        assertEquals(connectionTimeout, policies.getConnectionTimeout());
        RemotePolicyCacheConfiguration cache = policies.getPolicyCache();
        Iterator quotas = policies.getQuotaIterator();
View Full Code Here

        }

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        StyleSheetsConfig styleConfig = config.getStylesheetConfiguration();
        if (value != null) {
            assertNotNull("Stylesheet configuration should not be null",
                    styleConfig);
            if (value.pageLevelMaxAge != null) {
                assertEquals("Initial value and retrieved value should match",
View Full Code Here

       
        // Parse the XML and create a configuration object tree from it.
        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        configBuilder.setAddDefaultDevices(false);
        MarinerConfiguration config = configBuilder.buildConfiguration();
       
        // Check we got back the top level objects.
        assertNotNull(config);
        DevicesConfiguration devices = config.getDevices();
        assertNotNull(devices);

        // Test the default project.
        RepositoryDeviceConfiguration standard =
                devices.getStandardDeviceRepository();
View Full Code Here

        doc += "    </markup-plugin> \n";
        doc += "  </mcs-plugins> \n";

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        Iterator plugins = config.getMarkupPluginsListIterator();
        IntegrationPluginConfiguration mpc =
                (IntegrationPluginConfiguration) plugins.next();
        if (values != null) {
            Iterator args = mpc.getArguments().entrySet().iterator();
            if (args.hasNext()) {
View Full Code Here

            doc += "  </management>\n";
        }

        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        MarinerConfiguration config = configBuilder.buildConfiguration();
        return config.getManagementConfiguration();
    }
View Full Code Here

            doc += "  /> \n";
        }
       
        TestXmlConfigurationBuilder configBuilder =
                new TestXmlConfigurationBuilder(doc);
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull("marinerConfiguration", config);
       
        DebugConfiguration debug = config.getDebug();
        if (value != null) {
            assertNotNull("debugConfiguration", debug);
            assertEquals(value.comments, debug.getComments());
            assertEquals(value.logPageOutput, debug.getLogPageOutput());
        } else {
View Full Code Here

        assertTrue("compile set wrong",
                   !transform.isTemplateCompilationRequired());
    }

    public void testCacheTrue() throws ConfigurationException {
        MarinerConfiguration config = getMarinerConfiguration(
                                                        null, Boolean.TRUE);

        TransformConfiguration transform =
                    config.getPipelineConfiguration().
                        getTransformConfiguration();
        assertTrue("cache set wrong",
                   transform.isTemplateCacheRequired());
    }
View Full Code Here

        assertTrue("cache set wrong",
                   transform.isTemplateCacheRequired());
    }

    public void testCacheFalse() throws ConfigurationException {
        MarinerConfiguration config = getMarinerConfiguration(
                                                        null, Boolean.FALSE);

        TransformConfiguration transform =
                    config.getPipelineConfiguration().
                        getTransformConfiguration();
        assertTrue("cache set wrong",
                   !transform.isTemplateCacheRequired());
    }
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.