|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.objectweb.cjdbc.scenario.tools.mock.MockDriver
Mock driver generated by MockMaker (www.mockmaker.org).
| Field Summary | |
private ExpectationCounter |
myAcceptsURLCalls
|
private ExpectationList |
myAcceptsURLParameter0Values
|
private ReturnValues |
myActualAcceptsURLReturnValues
|
private ReturnValues |
myActualConnectReturnValues
|
private ReturnValues |
myActualGetMajorVersionReturnValues
|
private ReturnValues |
myActualGetMinorVersionReturnValues
|
private ReturnValues |
myActualGetPropertyInfoReturnValues
|
private ReturnValues |
myActualJdbcCompliantReturnValues
|
private ExpectationCounter |
myConnectCalls
|
private ExpectationList |
myConnectParameter0Values
|
private ExpectationList |
myConnectParameter1Values
|
private ExpectationCounter |
myGetMajorVersionCalls
|
private ExpectationCounter |
myGetMinorVersionCalls
|
private ExpectationCounter |
myGetPropertyInfoCalls
|
private ExpectationList |
myGetPropertyInfoParameter0Values
|
private ExpectationList |
myGetPropertyInfoParameter1Values
|
private ExpectationCounter |
myJdbcCompliantCalls
|
| Constructor Summary | |
MockDriver()
|
|
| Method Summary | |
boolean |
acceptsURL(java.lang.String arg0)
|
void |
addExpectedAcceptsURLValues(java.lang.String arg0)
addExpectedAcceptsURLValues |
void |
addExpectedConnectValues(java.lang.String arg0,
java.util.Properties arg1)
addExpectedConnect |
void |
addExpectedGetPropertyInfoValues(java.lang.String arg0,
java.util.Properties arg1)
addExpectedGetPropertyInfoValues |
java.sql.Connection |
connect(java.lang.String arg0,
java.util.Properties arg1)
Connect |
int |
getMajorVersion()
|
int |
getMinorVersion()
|
java.sql.DriverPropertyInfo[] |
getPropertyInfo(java.lang.String arg0,
java.util.Properties arg1)
|
boolean |
jdbcCompliant()
jdbcCompliant |
void |
setExpectedAcceptsURLCalls(int calls)
setExpectedAcceptsURLCalls |
void |
setExpectedConnectCalls(int calls)
setExpectedConnected |
void |
setExpectedGetMajorVersionCalls(int calls)
setExpectedGetMajorVersionCalls |
void |
setExpectedGetMinorVersionCalls(int calls)
setExpectedGetMinorVersionCalls |
void |
setExpectedGetPropertyInfoCalls(int calls)
setExpectedGetPropertyInfoCalls |
void |
setExpectedJdbcCompliantCalls(int calls)
setExpectedJdbcCompliantCalls |
void |
setupAcceptsURL(boolean arg)
setupAcceptsURL |
void |
setupConnect(java.sql.Connection arg)
setupConnect |
void |
setupExceptionAcceptsURL(java.lang.Throwable arg)
setupExceptionAcceptsURL |
void |
setupExceptionConnect(java.lang.Throwable arg)
setupExceptionConnect |
void |
setupExceptionGetMajorVersion(java.lang.Throwable arg)
setupExceptionGetMajorVersion |
void |
setupExceptionGetMinorVersion(java.lang.Throwable arg)
setupExceptionGetMinorVersion |
void |
setupExceptionGetPropertyInfo(java.lang.Throwable arg)
setupExceptionGetPropertyInfo |
void |
setupExceptionJdbcCompliant(java.lang.Throwable arg)
setupExceptionJdbcCompliant |
void |
setupGetMajorVersion(int arg)
setupGetMajorVersion |
void |
setupGetMinorVersion(int arg)
setupGetMinorVersion |
void |
setupGetPropertyInfo(java.sql.DriverPropertyInfo[] arg)
setupGetPropertyInfo |
void |
setupJdbcCompliant(boolean arg)
setupJdbcCompliant |
void |
verify()
verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private ExpectationCounter myConnectCalls
private ReturnValues myActualConnectReturnValues
private ExpectationList myConnectParameter0Values
private ExpectationList myConnectParameter1Values
private ExpectationCounter myAcceptsURLCalls
private ReturnValues myActualAcceptsURLReturnValues
private ExpectationList myAcceptsURLParameter0Values
private ExpectationCounter myGetPropertyInfoCalls
private ReturnValues myActualGetPropertyInfoReturnValues
private ExpectationList myGetPropertyInfoParameter0Values
private ExpectationList myGetPropertyInfoParameter1Values
private ExpectationCounter myGetMajorVersionCalls
private ReturnValues myActualGetMajorVersionReturnValues
private ExpectationCounter myGetMinorVersionCalls
private ReturnValues myActualGetMinorVersionReturnValues
private ExpectationCounter myJdbcCompliantCalls
private ReturnValues myActualJdbcCompliantReturnValues
| Constructor Detail |
public MockDriver()
| Method Detail |
public void setExpectedConnectCalls(int calls)
calls - value
public void addExpectedConnectValues(java.lang.String arg0,
java.util.Properties arg1)
arg0 - valuearg1 - value
public java.sql.Connection connect(java.lang.String arg0,
java.util.Properties arg1)
throws java.sql.SQLException
connect in interface java.sql.Driverarg0 - valuearg1 - value
java.sql.SQLException - if exceptionpublic void setupExceptionConnect(java.lang.Throwable arg)
arg - valuepublic void setupConnect(java.sql.Connection arg)
arg - valuepublic void setExpectedAcceptsURLCalls(int calls)
calls - valuepublic void addExpectedAcceptsURLValues(java.lang.String arg0)
arg0 - value
public boolean acceptsURL(java.lang.String arg0)
throws java.sql.SQLException
acceptsURL in interface java.sql.Driverjava.sql.SQLExceptionDriver.acceptsURL(java.lang.String)public void setupExceptionAcceptsURL(java.lang.Throwable arg)
arg - valuepublic void setupAcceptsURL(boolean arg)
arg - valuepublic void setExpectedGetPropertyInfoCalls(int calls)
calls - value
public void addExpectedGetPropertyInfoValues(java.lang.String arg0,
java.util.Properties arg1)
arg0 - valuearg1 - value
public java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String arg0,
java.util.Properties arg1)
throws java.sql.SQLException
getPropertyInfo in interface java.sql.Driverjava.sql.SQLExceptionDriver.getPropertyInfo(java.lang.String,
java.util.Properties)public void setupExceptionGetPropertyInfo(java.lang.Throwable arg)
arg - valuepublic void setupGetPropertyInfo(java.sql.DriverPropertyInfo[] arg)
arg - valuepublic void setExpectedGetMajorVersionCalls(int calls)
calls - valuepublic int getMajorVersion()
getMajorVersion in interface java.sql.DriverDriver.getMajorVersion()public void setupExceptionGetMajorVersion(java.lang.Throwable arg)
arg - valuepublic void setupGetMajorVersion(int arg)
arg - valuepublic void setExpectedGetMinorVersionCalls(int calls)
calls - valuepublic int getMinorVersion()
getMinorVersion in interface java.sql.DriverDriver.getMinorVersion()public void setupExceptionGetMinorVersion(java.lang.Throwable arg)
arg - valuepublic void setupGetMinorVersion(int arg)
arg - valuepublic void setExpectedJdbcCompliantCalls(int calls)
calls - valuepublic boolean jdbcCompliant()
jdbcCompliant in interface java.sql.DriverDriver.jdbcCompliant()public void setupExceptionJdbcCompliant(java.lang.Throwable arg)
arg - valuepublic void setupJdbcCompliant(boolean arg)
arg - valuepublic void verify()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||