mondrian.olap
Class ParserTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.olap.ParserTest
- All Implemented Interfaces:
- junit.framework.Test
public class ParserTest
- extends FoodMartTestCase
Tests the MDX parser.
- Version:
- $Id: //open/mondrian/testsrc/main/mondrian/olap/ParserTest.java#58 $
- Author:
- gjohnson
| 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, warehouseMembersCanadaMexicoUsa |
| Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, 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 |
funTable
static final BuiltinFunTable funTable
ParserTest
public ParserTest(String name)
testAxisParsing
public void testAxisParsing()
throws Exception
- Throws:
Exception
testNegativeCases
public void testNegativeCases()
throws Exception
- Throws:
Exception
testScannerPunc
public void testScannerPunc()
- Test case for bug
MONDRIAN-831, "Failure parsing queries with member identifiers beginning
with '_' and not expressed between brackets".
According to the spec
Identifiers (MDX), the first character of a regular identifier
must be a letter (per the unicode standard 2.0) or underscore. Subsequent
characters must be a letter, and underscore, or a digit.
testUnderscore
public void testUnderscore()
testUnparse
public void testUnparse()
testMultipleAxes
public void testMultipleAxes()
throws Exception
- Throws:
Exception
testMemberOnAxis
public void testMemberOnAxis()
- If an axis expression is a member, implicitly convert it to a set.
testCaseTest
public void testCaseTest()
testCaseSwitch
public void testCaseSwitch()
testSetExpr
public void testSetExpr()
- Test case for bug
MONDRIAN-306, "Parser should not require braces around range op in WITH
SET".
testDimensionProperties
public void testDimensionProperties()
testCellProperties
public void testCellProperties()
testIsEmpty
public void testIsEmpty()
testIs
public void testIs()
testIsNull
public void testIsNull()
testNull
public void testNull()
testCast
public void testCast()
testMultiplication
public void testMultiplication()
- Verifies that calculated measures made of several '*' operators
can resolve them correctly.
testBangFunction
public void testBangFunction()
testId
public void testId()
testCloneQuery
public void testCloneQuery()
testNumbers
public void testNumbers()
- Tests parsing of numbers.
testLargePrecision
public void testLargePrecision()
- Testcase for bug
MONDRIAN-272, "High precision number in MDX causes overflow".
The problem was that "5000001234" exceeded the precision of the int being
used to gather the mantissa.
testEmptyExpr
public void testEmptyExpr()
testAsPrecedence
public void testAsPrecedence()
- Test case for bug
MONDRIAN-648, "AS operator has lower precedence than required by MDX
specification".
Currently that bug is not fixed. We give the AS operator low
precedence, so CAST works as it should but 'expr AS namedSet' does not.
testDrillThrough
public void testDrillThrough()
testDrillThroughExtended
public void testDrillThroughExtended()
testExplain
public void testExplain()
testMultipleSpaces
public void testMultipleSpaces()
- Test case for bug
MONDRIAN-924, "Parsing fails with multiple spaces between words".