Skip to content

Commit

Permalink
Test Olap4jPreparedStatment.getCube().
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@312 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed May 5, 2010
1 parent 254931b commit 01238b8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -677,11 +677,17 @@ public void testPreparedStatement() throws SQLException {
}
}

if (tester.getFlavor() == Tester.Flavor.XMLA) // TODO: upgrade mondrian
assertEquals("Sales", pstmt.getCube().getName());

// Check metadata exists. (Support for this method is optional.)
final CellSetMetaData metaData = pstmt.getMetaData();
assertEquals("Sales", metaData.getCube().getName());

CellSet cellSet = pstmt.executeQuery();
assertEquals(metaData, cellSet.getMetaData());
assertEquals("Sales", metaData.getCube().getName());

String s = TestContext.toString(cellSet);
TestContext.assertEqualsVerbose(
"Axis #0:\n"
Expand Down

0 comments on commit 01238b8

Please sign in to comment.