/**
* Tests a server that reads its repository from a file URL.
*/
public void testRepository() throws MalformedURLException, SQLException {
final XmlaTestContext xmlaTestContext = new XmlaTestContext();
final MondrianServer server =
MondrianServer.createWithRepository(
new UrlRepositoryContentFinder(
"inline:" + xmlaTestContext.getDataSourcesString()),
null);
final int id = server.getId();
assertNotNull(id);
OlapConnection connection =
server.getConnection("FoodMart", "FoodMart", null);
final NamedList<Catalog> catalogs =
connection.getOlapCatalogs();
assertEquals(1, catalogs.size());
assertEquals("FoodMart", catalogs.get(0).getName());
server.shutdown();
}