Package io.agroal.test
Interface MockDriver
-
- All Superinterfaces:
Driver
public interface MockDriver extends Driver
- Author:
- Luis Barreiro
-
-
Field Summary
Fields Modifier and Type Field Description static DriverPropertyInfo[]EMPTY_PROPERTY_INFO
-
Method Summary
All Methods Static Methods Instance Methods Default Methods Modifier and Type Method Description default booleanacceptsURL(String url)default Connectionconnect(String url, Properties info)static voidderegisterMockDriver()default intgetMajorVersion()default intgetMinorVersion()default LoggergetParentLogger()default DriverPropertyInfo[]getPropertyInfo(String url, Properties info)default booleanjdbcCompliant()static voidregisterMockDriver()static voidregisterMockDriver(Class<? extends Connection> connectionType)
-
-
-
Field Detail
-
EMPTY_PROPERTY_INFO
static final DriverPropertyInfo[] EMPTY_PROPERTY_INFO
-
-
Method Detail
-
registerMockDriver
static void registerMockDriver(Class<? extends Connection> connectionType)
-
registerMockDriver
static void registerMockDriver()
-
deregisterMockDriver
static void deregisterMockDriver()
-
connect
default Connection connect(String url, Properties info) throws SQLException
- Specified by:
connectin interfaceDriver- Throws:
SQLException
-
acceptsURL
default boolean acceptsURL(String url) throws SQLException
- Specified by:
acceptsURLin interfaceDriver- Throws:
SQLException
-
getPropertyInfo
default DriverPropertyInfo[] getPropertyInfo(String url, Properties info) throws SQLException
- Specified by:
getPropertyInfoin interfaceDriver- Throws:
SQLException
-
getMajorVersion
default int getMajorVersion()
- Specified by:
getMajorVersionin interfaceDriver
-
getMinorVersion
default int getMinorVersion()
- Specified by:
getMinorVersionin interfaceDriver
-
jdbcCompliant
default boolean jdbcCompliant()
- Specified by:
jdbcCompliantin interfaceDriver
-
getParentLogger
default Logger getParentLogger() throws SQLFeatureNotSupportedException
- Specified by:
getParentLoggerin interfaceDriver- Throws:
SQLFeatureNotSupportedException
-
-