org.objectweb.cjdbc.controller.connection
Class MockDriver
java.lang.Object
org.objectweb.cjdbc.controller.connection.MockDriver
- All Implemented Interfaces:
- java.sql.Driver
- Direct Known Subclasses:
- AbstractPoolConnectionManagerTest.MyMockDriver
- public class MockDriver
- extends java.lang.Object
- implements java.sql.Driver
Mock driver generated by MockMaker (www.mockmaker.org).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myConnectCalls
private ExpectationCounter myConnectCalls
myActualConnectReturnValues
private ReturnValues myActualConnectReturnValues
myConnectParameter0Values
private ExpectationList myConnectParameter0Values
myConnectParameter1Values
private ExpectationList myConnectParameter1Values
myAcceptsURLCalls
private ExpectationCounter myAcceptsURLCalls
myActualAcceptsURLReturnValues
private ReturnValues myActualAcceptsURLReturnValues
myAcceptsURLParameter0Values
private ExpectationList myAcceptsURLParameter0Values
myGetPropertyInfoCalls
private ExpectationCounter myGetPropertyInfoCalls
myActualGetPropertyInfoReturnValues
private ReturnValues myActualGetPropertyInfoReturnValues
myGetPropertyInfoParameter0Values
private ExpectationList myGetPropertyInfoParameter0Values
myGetPropertyInfoParameter1Values
private ExpectationList myGetPropertyInfoParameter1Values
myGetMajorVersionCalls
private ExpectationCounter myGetMajorVersionCalls
myActualGetMajorVersionReturnValues
private ReturnValues myActualGetMajorVersionReturnValues
myGetMinorVersionCalls
private ExpectationCounter myGetMinorVersionCalls
myActualGetMinorVersionReturnValues
private ReturnValues myActualGetMinorVersionReturnValues
myJdbcCompliantCalls
private ExpectationCounter myJdbcCompliantCalls
myActualJdbcCompliantReturnValues
private ReturnValues myActualJdbcCompliantReturnValues
MockDriver
public MockDriver()
setExpectedConnectCalls
public void setExpectedConnectCalls(int calls)
addExpectedConnectValues
public void addExpectedConnectValues(java.lang.String arg0,
java.util.Properties arg1)
connect
public java.sql.Connection connect(java.lang.String arg0,
java.util.Properties arg1)
throws java.sql.SQLException
- Specified by:
connect
in interface java.sql.Driver
- Throws:
java.sql.SQLException
setupExceptionConnect
public void setupExceptionConnect(java.lang.Throwable arg)
setupConnect
public void setupConnect(java.sql.Connection arg)
setExpectedAcceptsURLCalls
public void setExpectedAcceptsURLCalls(int calls)
addExpectedAcceptsURLValues
public void addExpectedAcceptsURLValues(java.lang.String arg0)
acceptsURL
public boolean acceptsURL(java.lang.String arg0)
throws java.sql.SQLException
- Specified by:
acceptsURL
in interface java.sql.Driver
- Throws:
java.sql.SQLException
setupExceptionAcceptsURL
public void setupExceptionAcceptsURL(java.lang.Throwable arg)
setupAcceptsURL
public void setupAcceptsURL(boolean arg)
setExpectedGetPropertyInfoCalls
public void setExpectedGetPropertyInfoCalls(int calls)
addExpectedGetPropertyInfoValues
public void addExpectedGetPropertyInfoValues(java.lang.String arg0,
java.util.Properties arg1)
getPropertyInfo
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String arg0,
java.util.Properties arg1)
throws java.sql.SQLException
- Specified by:
getPropertyInfo
in interface java.sql.Driver
- Throws:
java.sql.SQLException
setupExceptionGetPropertyInfo
public void setupExceptionGetPropertyInfo(java.lang.Throwable arg)
setupGetPropertyInfo
public void setupGetPropertyInfo(java.sql.DriverPropertyInfo[] arg)
setExpectedGetMajorVersionCalls
public void setExpectedGetMajorVersionCalls(int calls)
getMajorVersion
public int getMajorVersion()
- Specified by:
getMajorVersion
in interface java.sql.Driver
setupExceptionGetMajorVersion
public void setupExceptionGetMajorVersion(java.lang.Throwable arg)
setupGetMajorVersion
public void setupGetMajorVersion(int arg)
setExpectedGetMinorVersionCalls
public void setExpectedGetMinorVersionCalls(int calls)
getMinorVersion
public int getMinorVersion()
- Specified by:
getMinorVersion
in interface java.sql.Driver
setupExceptionGetMinorVersion
public void setupExceptionGetMinorVersion(java.lang.Throwable arg)
setupGetMinorVersion
public void setupGetMinorVersion(int arg)
setExpectedJdbcCompliantCalls
public void setExpectedJdbcCompliantCalls(int calls)
jdbcCompliant
public boolean jdbcCompliant()
- Specified by:
jdbcCompliant
in interface java.sql.Driver
setupExceptionJdbcCompliant
public void setupExceptionJdbcCompliant(java.lang.Throwable arg)
setupJdbcCompliant
public void setupJdbcCompliant(boolean arg)
verify
public void verify()
Copyright © 2002, 2003 - ObjectWeb Consortium - All Rights Reserved.