Skip to content

Commit

Permalink
Remove dependency on MySQL JDBC driver.
Browse files Browse the repository at this point in the history
  • Loading branch information
julianhyde committed Feb 1, 2013
1 parent 453eb11 commit d533c9e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions testsrc/org/olap4j/ConnectionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import org.olap4j.test.TestContext.Tester.Flavor;
import org.olap4j.type.*;

import com.mysql.jdbc.StringUtils;

import junit.framework.AssertionFailedError;
import junit.framework.TestCase;

Expand Down Expand Up @@ -1989,8 +1987,7 @@ public void testMetadata() throws Exception {

assertEquals("Food", member.getCaption());

assertTrue(
StringUtils.isNullOrEmpty(member.getDescription()));
assertTrue(isNullOrEmpty(member.getDescription()));
assertEquals(1, member.getOrdinal());
assertEquals(1, member.getDepth());
assertEquals(-1, member.getSolveOrder());
Expand Down Expand Up @@ -2092,6 +2089,10 @@ public void testMetadata() throws Exception {
measureNameSet);
}

private static boolean isNullOrEmpty(String s) {
return s == null || s.equals("");
}

/**
* Test case for {@link org.olap4j.metadata.Schema#getSharedDimensions()}.
* Bug 3375355, "getSharedDimensions returns empty result".
Expand Down

0 comments on commit d533c9e

Please sign in to comment.