MockDriver: Add compatability to recent java version.

master
baztian 2015-03-31 09:31:29 +02:00
parent 54f83919e4
commit 01b1eea67d
1 changed files with 42 additions and 36 deletions

View File

@ -5,7 +5,9 @@ import java.sql.Driver;
import java.sql.DriverManager;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties;
import java.util.logging.Logger;
import org.mockito.Mockito;
@ -54,4 +56,8 @@ public class MockDriver implements Driver {
return false;
}
public Logger getParentLogger() throws SQLFeatureNotSupportedException {
throw new SQLFeatureNotSupportedException("Not supported by this driver.");
}
}