|
|||||||||
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.test.loader.CsvDBTestCase mondrian.rolap.aggmatcher.Checkin_7634
public class Checkin_7634
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.
Field Summary |
---|
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
Checkin_7634()
|
|
Checkin_7634(String name)
|
Method Summary | |
---|---|
protected String |
getCubeDescription()
|
protected String |
getDirectoryName()
|
protected String |
getFileName()
|
void |
testCrossJoin()
|
Methods inherited from class mondrian.test.loader.CsvDBTestCase |
---|
createTestContext, getNamedSetDescription, getParameterDescription, getRoleDescription, getSchema, getSqlConnection, getTestContext, getUdfDescription, getVirtualCubeDescription, isApplicable, setUp, tearDown |
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 Checkin_7634()
public Checkin_7634(String name)
Method Detail |
---|
public void testCrossJoin() throws Exception
Exception
protected String getDirectoryName()
getDirectoryName
in class CsvDBTestCase
protected String getFileName()
getFileName
in class CsvDBTestCase
protected String getCubeDescription()
getCubeDescription
in class CsvDBTestCase
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |