Skip to content

Commit

Permalink
Oops, fix for JDK 1.5.
Browse files Browse the repository at this point in the history
git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@39 c6a108a4-781c-0410-a6c6-c2d559e19af0
  • Loading branch information
julianhyde committed Nov 13, 2007
1 parent 96d3da3 commit ad23a24
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ public void testCubeLookupMember() throws Exception {
Class.forName(helper.getDriverClassName());
Connection connection = helper.createConnection();
OlapConnection olapConnection =
((Wrapper) connection).unwrap(OlapConnection.class);
((OlapWrapper) connection).unwrap(OlapConnection.class);
Cube cube = olapConnection.getSchema().getCubes().get("Sales");

Member member =
Expand Down Expand Up @@ -797,7 +797,7 @@ public void testCubeLookupMembers() throws Exception {
Class.forName(helper.getDriverClassName());
Connection connection = helper.createConnection();
OlapConnection olapConnection =
((Wrapper) connection).unwrap(OlapConnection.class);
((OlapWrapper) connection).unwrap(OlapConnection.class);
Cube cube = olapConnection.getSchema().getCubes().get("Sales");

List<Member> memberList =
Expand Down Expand Up @@ -875,7 +875,7 @@ public void testMetadata() throws Exception {
Class.forName(helper.getDriverClassName());
Connection connection = helper.createConnection();
OlapConnection olapConnection =
((Wrapper) connection).unwrap(OlapConnection.class);
((OlapWrapper) connection).unwrap(OlapConnection.class);
Cube cube = olapConnection.getSchema().getCubes().get("Sales");

for (Dimension dimension : cube.getDimensions()) {
Expand Down Expand Up @@ -984,7 +984,7 @@ public void testCubeType() throws Throwable {
Class.forName(helper.getDriverClassName());
Connection connection = helper.createConnection();
OlapConnection olapConnection =
((Wrapper) connection).unwrap(OlapConnection.class);
((OlapWrapper) connection).unwrap(OlapConnection.class);

final MdxParserFactory parserFactory =
olapConnection.getParserFactory();
Expand Down Expand Up @@ -1048,7 +1048,8 @@ public void testAxisType() throws Throwable {

// connect using properties and no username/password
Connection connection = helper.createConnection();
OlapConnection olapConnection = connection.unwrap(OlapConnection.class);
OlapConnection olapConnection =
((OlapWrapper) connection).unwrap(OlapConnection.class);

final MdxParserFactory parserFactory =
olapConnection.getParserFactory();
Expand Down

0 comments on commit ad23a24

Please sign in to comment.