From ad23a24885dfd583b002cf9bac5eb848a9fe379c Mon Sep 17 00:00:00 2001 From: Julian Hyde Date: Tue, 13 Nov 2007 09:46:46 +0000 Subject: [PATCH] Oops, fix for JDK 1.5. git-svn-id: https://olap4j.svn.sourceforge.net/svnroot/olap4j/trunk@39 c6a108a4-781c-0410-a6c6-c2d559e19af0 --- testsrc/org/olap4j/ConnectionTest.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/testsrc/org/olap4j/ConnectionTest.java b/testsrc/org/olap4j/ConnectionTest.java index 21a36cb..0c64dfa 100644 --- a/testsrc/org/olap4j/ConnectionTest.java +++ b/testsrc/org/olap4j/ConnectionTest.java @@ -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 = @@ -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 memberList = @@ -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()) { @@ -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(); @@ -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();