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();