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