Package mondrian.rolap
Class TopCountNativeEvaluatorTest
- java.lang.Object
-
- TestCase
-
- mondrian.test.FoodMartTestCase
-
- mondrian.rolap.TopCountNativeEvaluatorTest
-
public class TopCountNativeEvaluatorTest extends FoodMartTestCase
This class contains tests for some cases related to creating native evaluator forTOPCOUNT
function.- Author:
- Andrey Khayrutdinov
- See Also:
RolapNativeTopCount.createEvaluator(RolapEvaluator, FunDef, Exp[])
-
-
Field Summary
-
Fields inherited from class mondrian.test.FoodMartTestCase
propSaver
-
-
Constructor Summary
Constructors Constructor Description TopCountNativeEvaluatorTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setUp()
void
testNonNative_WhenContextIsInvalid()
void
testNonNative_WhenExplicitlyDisabled()
void
testNonNative_WhenTwoParametersArePassed()
For now, prohibit native evaluation of the function if has two parameters.-
Methods inherited from class mondrian.test.FoodMartTestCase
allMember, assertAxisReturns, assertAxisThrows, assertBooleanExprReturns, assertExprReturns, assertExprThrows, assertQueriesReturnSimilarResults, assertQueryReturns, assertQueryThrows, assertSize, cubeByName, execute, executeExpr, executeQuery, executeSingletonAxis, genderMembersIncludingAll, getConnection, getDimensionWithName, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, tearDown, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
-
-
-
-
Method Detail
-
testNonNative_WhenExplicitlyDisabled
public void testNonNative_WhenExplicitlyDisabled() throws Exception
- Throws:
Exception
-
testNonNative_WhenContextIsInvalid
public void testNonNative_WhenContextIsInvalid() throws Exception
- Throws:
Exception
-
testNonNative_WhenTwoParametersArePassed
public void testNonNative_WhenTwoParametersArePassed() throws Exception
For now, prohibit native evaluation of the function if has two parameters. According to the specification, this means the function should behave similarly toHEAD
function. However, native evaluation joins data with the fact table and if there is no data there, then some records are ignored, what is not correct.- Throws:
Exception
- See Also:
- MONDRIAN-2394
-
-