Search in sources :

Example 1 with StringRepositoryContentFinder

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);
}
Also used : DiffRepository(mondrian.test.DiffRepository) StringRepositoryContentFinder(mondrian.server.StringRepositoryContentFinder)

Example 2 with StringRepositoryContentFinder

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();
}
Also used : MondrianServer(mondrian.olap.MondrianServer) StringRepositoryContentFinder(mondrian.server.StringRepositoryContentFinder)

Aggregations

StringRepositoryContentFinder (mondrian.server.StringRepositoryContentFinder)2 MondrianServer (mondrian.olap.MondrianServer)1 DiffRepository (mondrian.test.DiffRepository)1