|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
mondrian.test.FoodMartTestCase
mondrian.test.Olap4jTest
public class Olap4jTest
Tests mondrian's olap4j API.
Test cases in this test could, in principle, be moved to olap4j's test.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class mondrian.test.FoodMartTestCase |
---|
FoodMartTestCase.QueryAndResult |
Field Summary |
---|
Fields inherited from class mondrian.test.FoodMartTestCase |
---|
propSaver |
Constructor Summary | |
---|---|
Olap4jTest()
|
|
Olap4jTest(String name)
|
Method Summary | |
---|---|
(package private) static void |
closeOnCompletion(Object statement)
Calls Statement .closeOnCompletion() via reflection. |
(package private) static boolean |
isClosed(Object statement)
Calls java.sql.Statement#isClosed() or
java.sql.ResultSet#isClosed() via reflection. |
void |
testAnnotation()
|
void |
testBugMondrian1204()
Test case for MONDRIAN-1204, "Olap4j's method toOlap4j throws NPE if we have a function". |
void |
testBugMondrian1217()
Runs a statement repeatedly, flushing cache every 10 iterations and calling cancel at random intervals. |
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 |
testSameMemberByVariousMeans()
Test case for bug MONDRIAN-920, "olap4j: inconsistent measure's member type". |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Olap4jTest()
public Olap4jTest(String name)
Method Detail |
---|
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 errorpublic void testCloseOnCompletion() throws Exception
Exception
static boolean isClosed(Object statement) throws Exception
java.sql.Statement#isClosed()
or
java.sql.ResultSet#isClosed()
via reflection.
statement
- Statement or result set
Exception
- 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 set
Exception
- on errorpublic void testDrillThrough() throws Exception
Exception
public 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
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |