public class SchemaTest extends FoodMartTestCase
SchemaVersionTest
,
SharedDimensionTest
Modifier and Type | Class and Description |
---|---|
static class |
SchemaTest.DummyPropertyFormatter
Implementation of
PropertyFormatter that throws. |
FoodMartTestCase.QueryAndResult
propSaver
Constructor and Description |
---|
SchemaTest(String name) |
Modifier and Type | Method and Description |
---|---|
void |
_testAttributeHierarchy() |
void |
_testNonUniqueAlias() |
void |
_testValidatorFindsNumericLevel() |
void |
checkBugMondrian1047(int n) |
void |
checkBugMondrian355(String timeHalfYear) |
void |
testAggTableSupportOfSharedDims()
this test triggers an exception out of the aggregate table manager
|
void |
testAllMemberMultipleDimensionUsages()
Test to verify naming of all member with
dimension usage name is different then source name
|
void |
testAllMemberNoStringReplace() |
void |
testBinaryLevelKey()
Test case for bug
MONDRIAN-413, "RolapMember causes ClassCastException in compare()",
caused by binary column value.
|
void |
testBugMondrian1047()
|
void |
testBugMondrian1065()
|
void |
testBugMondrian233()
Bug MONDRIAN-233,
"ClassCastException in AggQuerySpec" occurs when two cubes
have the same fact table, distinct aggregate tables, and measures with
the same name.
|
void |
testBugMondrian303()
Test case for bug
MONDRIAN-303, "Property column shifting when use captionColumn".
|
void |
testBugMondrian355()
|
void |
testBugMondrian463()
Unit test for bug
MONDRIAN-463, "Snowflake dimension with 3-way join.".
|
void |
testBugMondrian482()
Test case for bug
MONDRIAN-482, "ClassCastException when obtaining RolapCubeLevel".
|
void |
testBugMondrian747()
|
void |
testBugMondrian923()
This is a test case for bug Mondrian-923.
|
void |
testCalcMemberInCube()
|
void |
testCaption() |
void |
testCaptionDescriptionAndAnnotation()
Test for descriptions, captions and annotations of various schema
elements.
|
void |
testCaptionWithOrdinalColumn()
Test for MONDRIAN-943 and MONDRIAN-465.
|
void |
testCollapsedError() |
void |
testCountMeasure()
Tests a measure based on 'count'.
|
void |
testCubeCaption() |
void |
testCubeHasFact() |
void |
testCubesVisibility() |
void |
testCubeWithNoDimensions() |
void |
testCubeWithNoMeasuresFails() |
void |
testCubeWithOneCalcMeasure() |
void |
testCubeWithOneDimensionOneMeasure() |
void |
testCubeWithOneDimensionUsageOneMeasure() |
void |
testDefaultMemberName()
Test case for the issue described in
Pentaho
forum post 'wrong unique name for default member when hasAll=false'.
|
void |
testDeprecatedDistinctCountAggregator()
Tests that the deprecated "distinct count" value for the
Measure@aggregator attribute still works.
|
void |
testDimensionCreation()
This test verifies that the createDimension() API call is working
correctly.
|
void |
testDimensionsShareJoinTable()
WG: This no longer throws an exception, it is now possible
Tests two dimensions using same table (via different join paths).
|
void |
testDimensionsShareJoinTableOneAlias()
Tests two dimensions using same table (via different join paths).
|
void |
testDimensionsShareJoinTableTwoAliases()
Tests two dimensions using same table (via different join paths).
|
void |
testDimensionsShareTable()
Tests two dimensions using same table (via different join paths).
|
void |
testDimensionsShareTableNativeNonEmptyCrossJoin()
Tests two dimensions using same table (via different join paths).
|
void |
testDimensionsShareTableSameForeignKeys()
Tests two dimensions using same table with same foreign key
one table uses an alias.
|
void |
testDimensionUsageLevel()
Test DimensionUsage level attribute
|
void |
testDimensionUsageVisibility() |
void |
testDimensionVisibility() |
void |
testDuplicateTableAlias()
WG: Note, this no longer throws an exception with the new RolapCubeMember
functionality.
|
void |
testDuplicateTableAliasSameForeignKey()
This result is somewhat peculiar.
|
void |
testHierarchyAbbreviatedDefaultMember() |
void |
testHierarchyBadDefaultMember() |
void |
testHierarchyDefaultMember() |
void |
testHierarchyNoLevelsFails() |
void |
testHierarchyNonUniqueLevelsFails() |
void |
testHierarchyTableNotFound()
Tests that an error occurs if a hierarchy is based on a non-existent
table.
|
void |
testHierarchyVisibility() |
void |
testInvalidAggregator()
Tests that an invalid aggregator causes an error.
|
void |
testInvalidRoleError() |
void |
testInvalidSchemaAccess() |
void |
testLeftDeepJoinFails()
Tests that a join nested left-deep, that is (Join (Join A B) C), fails.
|
void |
testLevelInternalType()
Test case for the Level@internalType attribute.
|
void |
testLevelInternalTypeErr()
Negative test for Level@internalType attribute.
|
void |
testLevelTableAttributeAsView()
Verifies that RolapHierarchy.tableExists() supports views.
|
void |
testLevelTableNotFound() |
void |
testLevelVisibility() |
void |
testMondrian1390()
This is a test for
MONDRIAN-1390
|
void |
testMondrian1499() |
void |
testMultiByteSchemaReadFromFile() |
void |
testMultipleDimensionHierarchyCaptionUsages()
Test Multiple DimensionUsages on same Dimension.
|
void |
testMultipleDimensionUsages()
Test Multiple DimensionUsages on same Dimension.
|
void |
testNonAliasedDimensionUsage()
This test displays an informative error message if someone uses
an unaliased name instead of an aliased name
|
void |
testNonCollapsedAggregate() |
void |
testNonCollapsedAggregateOnNonUniqueLevelFails() |
void |
testPrimaryKeyTableNotFound() |
void |
testPropertyFormatter() |
void |
testScdJoin()
Testcase for a problem which involved a slowly changing dimension.
|
void |
testSnowflakeHierarchyValidationNotNeeded()
test hierarchy with completely different join path to fact table than
first hierarchy.
|
void |
testSnowflakeHierarchyValidationNotNeeded2()
test hierarchy with slightly different join path to fact table than
first hierarchy.
|
void |
testSolveOrderInCalculatedMember() |
void |
testTwoAliasesDimensionsShareTable()
Tests two dimensions using same table (via different join paths).
|
void |
testTwoAliasesDimensionsShareTableSameForeignKeys()
Tests two dimensions using same table with same foreign key.
|
void |
testTwoNonCollapsedAggregate() |
void |
testUnionRole() |
void |
testUnionRoleContainsGrants() |
void |
testUnionRoleIllegalForwardRef() |
void |
testUnknownUsages()
Testcase for
Bug MONDRIAN-291, "'unknown usage' messages".
|
void |
testUnknownUsages1() |
void |
testViewDegenerateDims()
Tests a cube whose fact table is a <View> element as well as a
degenerate dimension.
|
void |
testViewFactTable()
Tests a cube whose fact table is a <View> element.
|
void |
testViewFactTable2()
Tests a cube whose fact table is a <View> element, and which
has dimensions based on the fact table.
|
void |
testVirtualCubeNamedSetSupportInSchema() |
void |
testVirtualCubeNamedSetSupportInSchemaError() |
void |
testVirtualCubesVisibility() |
void |
testVirtualDimensionVisibility() |
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, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
tearDown
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, toString
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
public SchemaTest(String name)
public void testSolveOrderInCalculatedMember()
public void testHierarchyDefaultMember()
public void testDefaultMemberName()
public void testHierarchyAbbreviatedDefaultMember()
public void testHierarchyNoLevelsFails()
public void testHierarchyNonUniqueLevelsFails()
public void testCountMeasure()
public void testHierarchyTableNotFound()
public void testPrimaryKeyTableNotFound()
public void testLevelTableNotFound()
public void testHierarchyBadDefaultMember()
public void testDuplicateTableAlias()
Tests that an error is issued if two dimensions use the same table via different drill-paths and do not use a different alias. If this error is not issued, the generated SQL can be missing a join condition, as in Bug MONDRIAN-236, "Mondrian generates invalid SQL".
public void testDuplicateTableAliasSameForeignKey()
public void testDimensionsShareTable()
testDuplicateTableAlias()
.public void testDimensionsShareTableNativeNonEmptyCrossJoin()
public void testDimensionsShareTableSameForeignKeys()
public void testSnowflakeHierarchyValidationNotNeeded()
public void testSnowflakeHierarchyValidationNotNeeded2()
public void testDimensionsShareJoinTable()
public void testDimensionsShareJoinTableOneAlias()
public void testDimensionsShareJoinTableTwoAliases()
public void testTwoAliasesDimensionsShareTable()
public void testTwoAliasesDimensionsShareTableSameForeignKeys()
public void testMultipleDimensionUsages()
public void testMultipleDimensionHierarchyCaptionUsages()
public void testDimensionCreation()
public void testDimensionUsageLevel()
public void testAllMemberMultipleDimensionUsages()
public void testNonAliasedDimensionUsage()
public void testViewDegenerateDims()
public void testViewFactTable()
public void testViewFactTable2()
public void testDeprecatedDistinctCountAggregator()
public void testInvalidAggregator()
public void testUnknownUsages()
public void testUnknownUsages1()
public void testPropertyFormatter()
public void testBugMondrian233()
This test case attempts to reproduce this issue by creating that environment, but it found a different issue: a measure came back with a cell value which was from a different measure. The root cause is probably the same: when measures are registered in a star, they should be qualified by cube name.
public void testBugMondrian303()
public void testCubeWithOneDimensionOneMeasure()
public void testCubeWithOneDimensionUsageOneMeasure()
public void testCubeHasFact()
public void testCubeCaption() throws SQLException
SQLException
public void testCubeWithNoDimensions()
public void testCubeWithNoMeasuresFails()
public void testCubeWithOneCalcMeasure()
public void testCalcMemberInCube()
public void testAggTableSupportOfSharedDims()
public void testLevelTableAttributeAsView()
public void testInvalidSchemaAccess()
public void testAllMemberNoStringReplace()
public void testUnionRole()
public void testUnionRoleContainsGrants()
public void testUnionRoleIllegalForwardRef()
public void testVirtualCubeNamedSetSupportInSchema()
public void testVirtualCubeNamedSetSupportInSchemaError()
public void _testValidatorFindsNumericLevel()
public void testInvalidRoleError()
public void testBinaryLevelKey()
public void testLevelInternalType()
See bug MONDRIAN-896, "Oracle integer columns overflow if value >>2^31".
public void testLevelInternalTypeErr()
public void _testAttributeHierarchy()
public void testScdJoin()
public void _testNonUniqueAlias()
public void testBugMondrian482()
public void testBugMondrian355()
public void checkBugMondrian355(String timeHalfYear)
public void testCaptionDescriptionAndAnnotation()
public void testCaption()
public void testBugMondrian747()
public void testBugMondrian463()
public void testLeftDeepJoinFails()
testBugMondrian463()
, except left-deep.public void testCaptionWithOrdinalColumn()
public void testBugMondrian923() throws Exception
Exception
public void testVirtualCubesVisibility() throws Exception
Exception
public void testVirtualDimensionVisibility() throws Exception
Exception
public void testDimensionUsageVisibility() throws Exception
Exception
public void testNonCollapsedAggregate() throws Exception
Exception
public void testNonCollapsedAggregateOnNonUniqueLevelFails() throws Exception
Exception
public void testTwoNonCollapsedAggregate() throws Exception
Exception
public void testBugMondrian1047()
public void checkBugMondrian1047(int n)
public void testBugMondrian1065()
public void testMondrian1390() throws Exception
Calling SchemaReader.getLevelMembers(Level, boolean)
directly would return the null members at the end, since it was
using TupleReader#readTuples instead of TupleReader#readMembers.
Exception
public void testMultiByteSchemaReadFromFile() throws IOException
IOException