Package com.volantis.mcs.runtime.configuration

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


        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();
                assertEquals("", value.shortNames, jdbcRepositoryConfig.getUseShortNames());
                MCSDatabaseConfiguration ds = (MCSDatabaseConfiguration)
                        jdbcRepositoryConfig.getDataSourceConfiguration();
              assertEquals(value.vendor, ds.getVendor());
              assertEquals(value.host, ds.getHost());
              assertEquals(value.port, ds.getPort());
              assertEquals(value.source, ds.getSource());
      } else if ("xml".equals(value.type)) {
        XMLRepositoryConfiguration xmlConfig =
          repos.getXmlRepository();
        assertNotNull(xmlConfig);
      }

        }
    }
View Full Code Here

TOP

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

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.