Initial use of mockdriver (still failing).

This commit is contained in:
baztian
2015-04-01 20:17:26 +02:00
parent eae6c0686d
commit cb45b4e71a
2 changed files with 36 additions and 2 deletions
@@ -24,7 +24,7 @@ public class MockDriver implements Driver {
@Override
public Connection connect(String url, Properties info) throws SQLException {
if (!url.startsWith("jdbc:jaydebeapi://")) {
if (!acceptsURL(url)) {
return null;
}
return Mockito.mock(Connection.class);
@@ -32,7 +32,7 @@ public class MockDriver implements Driver {
@Override
public boolean acceptsURL(String url) throws SQLException {
return true;
return url.startsWith("jdbc:jaydebeapi://");
}
@Override