Package com.volantis.mcs.runtime.configuration.project

Examples of com.volantis.mcs.runtime.configuration.project.ProjectsConfiguration


        configBuilder.setAddDefaultProjects(false);
        MarinerConfiguration config = configBuilder.buildConfiguration();
       
        // Check we got back the top level objects.
        assertNotNull(config);
        ProjectsConfiguration projects = config.getProjects();
        assertNotNull(projects);

        // Test the default project.
        {
            RuntimeProjectConfiguration project = projects.getDefaultProject();
            assertNotNull(project);
            assertEquals("", Boolean.TRUE, project.getPreload());

            AbstractPoliciesConfiguration policies =
                    project.getPolicies();
            assertNotNull(policies);
            assertTrue(policies instanceof XmlPoliciesConfiguration);
            XmlPoliciesConfiguration xmlPolicies =
                    (XmlPoliciesConfiguration) policies;
            assertEquals("", "an xml dir", xmlPolicies.getDirectory());

            AssetsConfiguration assets = project.getAssets();
            assertNotNull(assets);
            AssetConfiguration audioAssets = assets.getAudioAssets();
            assertNotNull(audioAssets);
            assertEquals("", "a/prefix/url", audioAssets.getPrefixUrl());

            GeneratedResourcesConfiguration resources =
                    project.getGeneratedResources();
            assertNotNull(resources);
            assertEquals("", "default-resources", resources.getBaseDir());
        }

        // Test the single named project which was present.
        {
            RuntimeProjectConfiguration project = (RuntimeProjectConfiguration)
                    projects.getNamedProjects().values().iterator().next();
            assertNotNull(project);
            assertEquals("", "a/project", project.getName());

            AbstractPoliciesConfiguration policies = project.getPolicies();
            assertNotNull(policies);
View Full Code Here


            mcsConfiguration = new MCSConfiguration(marinerConfig);
            mcsConfiguration.resolveDataSources();

            // Determine whether the default project should preload its
            // policies.
            ProjectsConfiguration projects = marinerConfig.getProjects();

            RepositoryConnectionType deviceConnectionType =
                    getDRepositoryConnectionType();

            // Configure an XML repository if one is configured or required
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.project.ProjectsConfiguration

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.