mondrian.test
Class Olap4jTest
java.lang.Object
junit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.test.Olap4jTest
- All Implemented Interfaces:
- Test
public class Olap4jTest
- extends FoodMartTestCase
Tests mondrian's olap4j API.
Test cases in this test could, in principle, be moved to olap4j's test.
- Author:
- jhyde
| 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.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 |
Olap4jTest
public Olap4jTest()
Olap4jTest
public Olap4jTest(String name)
testSameMemberByVariousMeans
public void testSameMemberByVariousMeans()
throws SQLException
- Test case for bug
MONDRIAN-920, "olap4j: inconsistent measure's member type".
- Throws:
SQLException - on error
testAnnotation
public void testAnnotation()
throws SQLException
- Throws:
SQLException
testFormatString
public void testFormatString()
throws SQLException
- Throws:
SQLException
testLevelProperties
public void testLevelProperties()
throws SQLException
- 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.
- Throws:
SQLException - on error
testCellProperties
public void testCellProperties()
throws SQLException
- Throws:
SQLException
testLimit
public void testLimit()
throws SQLException
- Same case as
BasicQueryTest.testQueryIterationLimit(), but this
time, check that the OlapException has the required SQLstate.
- Throws:
SQLException - on error
testCloseOnCompletion
public void testCloseOnCompletion()
throws Exception
- Throws:
Exception
isClosed
static boolean isClosed(Object statement)
throws Exception
- Calls
Statement.isClosed() or
ResultSet.isClosed() via reflection.
- Parameters:
statement - Statement or result set
- Returns:
- Whether statement or result set is closed
- Throws:
Exception - on error
closeOnCompletion
static void closeOnCompletion(Object statement)
throws Exception
- Calls
java.sql.Statement#closeOnCompletion() via reflection.
- Parameters:
statement - Statement or result set
- Throws:
Exception - on error
testParse
public void testParse()
throws SQLException
- Throws:
SQLException