|
|||||||||||
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 com.mockobjects.ExpectationCounter |
myAcceptsURLCalls
|
private com.mockobjects.ExpectationList |
myAcceptsURLParameter0Values
|
private mockmaker.ReturnValues |
myActualAcceptsURLReturnValues
|
private mockmaker.ReturnValues |
myActualConnectReturnValues
|
private mockmaker.ReturnValues |
myActualGetMajorVersionReturnValues
|
private mockmaker.ReturnValues |
myActualGetMinorVersionReturnValues
|
private mockmaker.ReturnValues |
myActualGetPropertyInfoReturnValues
|
private mockmaker.ReturnValues |
myActualJdbcCompliantReturnValues
|
private com.mockobjects.ExpectationCounter |
myConnectCalls
|
private com.mockobjects.ExpectationList |
myConnectParameter0Values
|
private com.mockobjects.ExpectationList |
myConnectParameter1Values
|
private com.mockobjects.ExpectationCounter |
myGetMajorVersionCalls
|
private com.mockobjects.ExpectationCounter |
myGetMinorVersionCalls
|
private com.mockobjects.ExpectationCounter |
myGetPropertyInfoCalls
|
private com.mockobjects.ExpectationList |
myGetPropertyInfoParameter0Values
|
private com.mockobjects.ExpectationList |
myGetPropertyInfoParameter1Values
|
private com.mockobjects.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 com.mockobjects.ExpectationCounter myConnectCalls
private mockmaker.ReturnValues myActualConnectReturnValues
private com.mockobjects.ExpectationList myConnectParameter0Values
private com.mockobjects.ExpectationList myConnectParameter1Values
private com.mockobjects.ExpectationCounter myAcceptsURLCalls
private mockmaker.ReturnValues myActualAcceptsURLReturnValues
private com.mockobjects.ExpectationList myAcceptsURLParameter0Values
private com.mockobjects.ExpectationCounter myGetPropertyInfoCalls
private mockmaker.ReturnValues myActualGetPropertyInfoReturnValues
private com.mockobjects.ExpectationList myGetPropertyInfoParameter0Values
private com.mockobjects.ExpectationList myGetPropertyInfoParameter1Values
private com.mockobjects.ExpectationCounter myGetMajorVersionCalls
private mockmaker.ReturnValues myActualGetMajorVersionReturnValues
private com.mockobjects.ExpectationCounter myGetMinorVersionCalls
private mockmaker.ReturnValues myActualGetMinorVersionReturnValues
private com.mockobjects.ExpectationCounter myJdbcCompliantCalls
private mockmaker.ReturnValues myActualJdbcCompliantReturnValues
Constructor Detail |
public MockDriver()
Method Detail |
public void setExpectedConnectCalls(int calls)
calls
- valuepublic void addExpectedConnectValues(java.lang.String arg0, java.util.Properties arg1)
arg0
- valuearg1
- valuepublic java.sql.Connection connect(java.lang.String arg0, java.util.Properties arg1) throws java.sql.SQLException
connect
in interface java.sql.Driver
arg0
- 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
- valuepublic boolean acceptsURL(java.lang.String arg0) throws java.sql.SQLException
acceptsURL
in interface java.sql.Driver
java.sql.SQLException
Driver.acceptsURL(java.lang.String)
public void setupExceptionAcceptsURL(java.lang.Throwable arg)
arg
- valuepublic void setupAcceptsURL(boolean arg)
arg
- valuepublic void setExpectedGetPropertyInfoCalls(int calls)
calls
- valuepublic void addExpectedGetPropertyInfoValues(java.lang.String arg0, java.util.Properties arg1)
arg0
- valuearg1
- valuepublic java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String arg0, java.util.Properties arg1) throws java.sql.SQLException
getPropertyInfo
in interface java.sql.Driver
java.sql.SQLException
Driver.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.Driver
Driver.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.Driver
Driver.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.Driver
Driver.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 |