|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase mondrian.test.FoodMartTestCase mondrian.rolap.BatchTestCase mondrian.rolap.FilterTest
public class FilterTest
Tests for Filter and native Filters.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class mondrian.rolap.BatchTestCase |
---|
BatchTestCase.Bomb, BatchTestCase.CellRequestConstraint, BatchTestCase.TestCase, BatchTestCase.TestListener |
Field Summary |
---|
Fields inherited from class mondrian.rolap.BatchTestCase |
---|
cubeNameSales, fieldGender, fieldProductDepartment, fieldProductFamily, fieldValueProductDepartment, fieldValuesGender, fieldValuesProductFamily, fieldValuesYear, fieldYear, measureUnitSales, tableCustomer, tableProductClass, tableTime |
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
FilterTest()
|
|
FilterTest(String name)
|
Method Summary | |
---|---|
protected void |
setUp()
|
void |
testBug779()
Tests the bug MONDRIAN-779. |
void |
testBugMondrian706()
Testcase for bug MONDRIAN-706, "SQL using hierarchy attribute 'Column Name' instead of 'Column' in the filter". |
void |
testCachedNativeSetUsingFilters()
|
void |
testCmNativeFilter()
Executes a Filter() whose condition contains a calculated member. |
void |
testInFilterAND()
|
void |
testInFilterNonNative()
Here the filter is above (rather than as inputs to) the NECJ. |
void |
testInFilterSimple()
|
void |
testIsFilterSimple()
|
void |
testMixedInIsFilters()
|
void |
testNativeFilter()
|
void |
testNativeFilterNonEmpty()
Verify that filter with Not IsEmpty(storedMeasure) can be natively evaluated. |
void |
testNativeFilterWithNullMeasure()
|
void |
testNonNativeFilterWithCalcMember()
|
void |
testNonNativeFilterWithNullMeasure()
|
void |
testNotInFilterExcludeNullMember()
Test that if Null member is explicitly excluded, then the native filter SQL should filter out null members. |
void |
testNotInFilterKeepNullMember()
Test that if Null member is not explicitly excluded, then the native filter SQL should not filter out null members. |
void |
testNotInFilterSimple()
|
void |
testNotInMultiLevelMemberConstraintMixedNullNonNullParent()
Test that null members are included when the filter explicitly excludes certain members that contain nulls. |
void |
testNotInMultiLevelMemberConstraintNonNullParent()
Test that null members are included when the filter excludes members that contain multiple levels, but none being null. |
void |
testNotInMultiLevelMemberConstraintNonNullSameParent()
Test that null members are included when the filter excludes members that contain multiple levels, but none being null. |
void |
testNotInMultiLevelMemberConstraintSingleNullParent()
Test that null members are included when the filter explicitly excludes a single member that has a null. |
void |
testNotIsFilterSimple()
|
void |
testTopCountOverInFilter()
|
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterTest()
public FilterTest(String name)
Method Detail |
---|
protected void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void testInFilterSimple() throws Exception
Exception
public void testNotInFilterSimple() throws Exception
Exception
public void testInFilterAND() throws Exception
Exception
public void testIsFilterSimple() throws Exception
Exception
public void testNotIsFilterSimple() throws Exception
Exception
public void testMixedInIsFilters() throws Exception
Exception
public void testInFilterNonNative() throws Exception
To expand on this case, RolapNativeFilter needs to be improved so it knows how to represent the dimension filter constraint. Currently the FilterConstraint is only used for filters on measures.
Exception
public void testTopCountOverInFilter() throws Exception
Exception
public void testNotInFilterKeepNullMember() throws Exception
Exception
public void testNotInFilterExcludeNullMember() throws Exception
Exception
public void testNotInMultiLevelMemberConstraintNonNullParent()
public void testNotInMultiLevelMemberConstraintNonNullSameParent()
public void testNotInMultiLevelMemberConstraintMixedNullNonNullParent()
public void testNotInMultiLevelMemberConstraintSingleNullParent()
public void testCachedNativeSetUsingFilters() throws Exception
Exception
public void testNativeFilter()
public void testCmNativeFilter()
public void testNonNativeFilterWithNullMeasure()
public void testNativeFilterWithNullMeasure()
public void testNonNativeFilterWithCalcMember()
public void testNativeFilterNonEmpty()
public void testBugMondrian706()
public void testBug779()
MemberListCrossJoinArg
was not considering the 'exclude' attribute in its hash code.
This resulted in two filters being chained within two different
named sets to register a cache element with the same key, even
though they were the different because of the added "NOT" keyword.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |