use of mondrian.server.StringRepositoryContentFinder in project mondrian by pentaho.
the class XmlaTest method setUp.
// implement TestCase
protected void setUp() throws Exception {
super.setUp();
DiffRepository diffRepos = getDiffRepos();
diffRepos.setCurrentTestCaseName(getName());
server = MondrianServer.createWithRepository(new StringRepositoryContentFinder(context.getDataSourcesString()), XmlaTestContext.CATALOG_LOCATOR);
handler = new XmlaHandler((XmlaHandler.ConnectionFactory) server, "xmla");
XMLUnit.setIgnoreWhitespace(false);
}
use of mondrian.server.StringRepositoryContentFinder in project mondrian by pentaho.
the class MondrianServerTest method testStringRepository.
/**
* Tests a server with its own repository.
*/
public void testStringRepository() throws MalformedURLException {
final MondrianServer server = MondrianServer.createWithRepository(new StringRepositoryContentFinder("foo bar"), null);
final int id = server.getId();
assertNotNull(id);
server.shutdown();
}
Aggregations