use of mondrian.test.TestContext in project mondrian by pentaho.
the class SharedDimensionTest method testNECJMemberList.
public void testNECJMemberList() {
// Schema has two cubes sharing a dimension.
// Query from the second cube.
TestContext testContext = getTestContextForSharedDimCubeACubeB();
testContext.assertQueryReturns(queryNECJMemberList, resultNECJMemberList);
}
use of mondrian.test.TestContext in project mondrian by pentaho.
the class SharedDimensionTest method testNECJMultiLevelMemberList.
public void testNECJMultiLevelMemberList() {
// Schema has two cubes sharing a dimension.
// Query from the first cube.
// This is a case where not using alias not only affects performance,
// but also produces incorrect result.
TestContext testContext = getTestContextForSharedDimCubeACubeB();
testContext.assertQueryReturns(queryNECJMultiLevelMemberList, resultNECJMultiLevelMemberList);
}
use of mondrian.test.TestContext in project mondrian by pentaho.
the class SharedDimensionTest method testB.
public void testB() {
// Schema has two cubes sharing a dimension.
// Query from the second cube.
TestContext testContext = getTestContextForSharedDimCubeACubeB();
testContext.assertQueryReturns(queryCubeB, resultCubeB);
}
use of mondrian.test.TestContext in project mondrian by pentaho.
the class SharedDimensionTest method testVirtualCube.
public void testVirtualCube() {
// Schema has two cubes sharing a dimension, and a virtual cube built
// over these two cubes.
// Query from the virtual cube.
TestContext testContext = TestContext.instance().create(sharedDimension, cubeA + "\n" + cubeB, virtualCube, null, null, null);
testContext.assertQueryReturns(queryVirtualCube, resultVirtualCube);
}
use of mondrian.test.TestContext in project mondrian by pentaho.
the class SharedDimensionTest method testA.
public void testA() {
// Schema has two cubes sharing a dimension.
// Query from the first cube.
TestContext testContext = getTestContextForSharedDimCubeACubeB();
testContext.assertQueryReturns(queryCubeA, resultCubeA);
}
Aggregations