Skip to content

Commit

Permalink
Add test (disabled) for bug 2951656. Bug needs to be fixed in mondria…
Browse files Browse the repository at this point in the history
…n driver,

so the test may be disabled for a while.


git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@303 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Feb 22, 2010
1 parent 97812f2 commit f110e66
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2549,6 +2549,28 @@ public void testCubeDimensionsOrder() throws Exception {
dimNames,
sb.toString());
}

/**
* Query with dimension properties.
*
* <p>Test case for
* <a href="http://sourceforge.net/tracker/?func=detail&aid=2951656&group_id=168953&atid=848534">
* bug 2951656, "Olap4j should not throw IllegalArgumentException"</a>.
*/
public void _testDimensionProperties() throws SQLException {
connection = tester.createConnection();
OlapConnection olapConnection =
tester.getWrapper().unwrap(connection, OlapConnection.class);
String mdx =
"select {[Product].[Product Family].Members} ON COLUMNS,\n"
+ "{[Store].[Store Name].Members}\n"
+ " DIMENSION PROPERTIES [Store].[Store Sqft] ON ROWS\n"
+ "from [Sales]\n"
+ "where [Measures].[Unit Sales]";
PreparedOlapStatement pstmt =
olapConnection.prepareOlapStatement(mdx);
pstmt.executeQuery();
}
}

// End ConnectionTest.java

0 comments on commit f110e66

Please sign in to comment.