public class Olap4jTest extends FoodMartTestCase
Test cases in this test could, in principle, be moved to olap4j's test.
FoodMartTestCase.QueryAndResult
propSaver
Constructor and Description |
---|
Olap4jTest() |
Olap4jTest(String name) |
Modifier and Type | Method and Description |
---|---|
(package private) static void |
closeOnCompletion(Object statement)
Calls
Statement .closeOnCompletion() via reflection. |
(package private) static boolean |
isClosed(Object statement)
Calls
Statement.isClosed() or
ResultSet.isClosed() via reflection. |
void |
testAnnotation() |
void |
testBugMondrian1204()
|
void |
testBugMondrian1217()
Runs a statement repeatedly, flushing cache every 10 iterations and
calling cancel at random intervals.
|
void |
testCalcMemberInCube()
|
void |
testCellProperties() |
void |
testCloseOnCompletion() |
void |
testDrillThrough() |
void |
testFormatString() |
void |
testLevelProperties()
Tests that a property that is not a standard olap4j property but is a
Mondrian-builtin property (viz, "FORMAT_EXP") is included among a level's
properties.
|
void |
testLimit()
Same case as
BasicQueryTest.testQueryIterationLimit() , but this
time, check that the OlapException has the required SQLstate. |
void |
testMondrian1353()
This is a test for
MONDRIAN-1353
|
void |
testMondrian1390()
Same as
SchemaTest.testMondrian1390() but this time
with olap4j. |
void |
testSameMemberByVariousMeans()
Test case for bug
MONDRIAN-920, "olap4j: inconsistent measure's member type".
|
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, verifySameNativeAndNot, warehouseMembersCanadaMexicoUsa
public Olap4jTest()
public Olap4jTest(String name)
public void testSameMemberByVariousMeans() throws SQLException
SQLException
- on errorpublic void testAnnotation() throws SQLException
SQLException
public void testFormatString() throws SQLException
SQLException
public void testLevelProperties() throws SQLException
SQLException
- on errorpublic void testCellProperties() throws SQLException
SQLException
public void testLimit() throws SQLException
BasicQueryTest.testQueryIterationLimit()
, but this
time, check that the OlapException has the required SQLstate.SQLException
- on errorstatic boolean isClosed(Object statement) throws Exception
Statement.isClosed()
or
ResultSet.isClosed()
via reflection.statement
- Statement or result setException
- on errorstatic void closeOnCompletion(Object statement) throws Exception
Statement
.closeOnCompletion() via reflection.
(It cannot be called directly because it only exists from JDK 1.7
onwards.)statement
- Statement or result setException
- on errorpublic void testBugMondrian1204() throws SQLException
SQLException
public void testBugMondrian1217() throws SQLException
Test case for
MONDRIAN-1217, "Statement.cancel() during fact query leads to permanent segment lock".SQLException
public void testMondrian1353() throws Exception
An empty stack exception was thrown from the olap4j API if the hierarchy didn't have a all member and the default member was not explicitly set.
Exception
public void testMondrian1390() throws Exception
SchemaTest.testMondrian1390()
but this time
with olap4j.Exception
public void testCalcMemberInCube() throws SQLException
SQLException
- on error