mondrian.rolap.aggmatcher
Class Checkin_7634
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.test.loader.CsvDBTestCase
mondrian.rolap.aggmatcher.Checkin_7634
- All Implemented Interfaces:
- Test
public class Checkin_7634
- extends CsvDBTestCase
Checkin 7634 attempted to correct a problem demonstrated by this
junit. The CrossJoinFunDef class has an optimization that kicks in
when the combined lists sizes are greater than 1000. I create a
property here which, if set, can be used to change that size from
1000 to, in this case, 2. Also, there is a property that disables the
use of the optimization altogether and another that permits the
use of the old optimization, currently the nonEmptyListOld method in
the CrossJoinFunDef class, and the new, checkin 7634, version of the
method called nonEmptyList.
The old optimization only looked at the default measure while the
new version looks at all measures appearing in the query.
The example Cube and data for the junit is such that there is no
data for the default measure. Thus the old optimization fails
to produce the correct result.
- Version:
- $Id: //open/mondrian/testsrc/main/mondrian/rolap/aggmatcher/Checkin_7634.java#9 $
- Author:
- Richard M. Emberson
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, getTestContext, isDefaultNullMemberRepresentation, isGroupingSetsSupported, member, productMembersPotScrubbersPotsAndPans, storeMembersCAAndOR, storeMembersUsaAndCanada, warehouseMembersCanadaMexicoUsa |
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, failNotEquals, failNotSame, failSame |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Checkin_7634
public Checkin_7634()
Checkin_7634
public Checkin_7634(java.lang.String name)
setUp
protected void setUp()
throws java.lang.Exception
- Overrides:
setUp
in class CsvDBTestCase
- Throws:
java.lang.Exception
tearDown
protected void tearDown()
throws java.lang.Exception
- Overrides:
tearDown
in class CsvDBTestCase
- Throws:
java.lang.Exception
testCrossJoin
public void testCrossJoin()
throws java.lang.Exception
- Throws:
java.lang.Exception
getDirectoryName
protected java.lang.String getDirectoryName()
- Specified by:
getDirectoryName
in class CsvDBTestCase
getFileName
protected java.lang.String getFileName()
- Specified by:
getFileName
in class CsvDBTestCase
getCubeDescription
protected java.lang.String getCubeDescription()
- Specified by:
getCubeDescription
in class CsvDBTestCase