org.objectweb.cjdbc.controller.connection
Class MockDriver

java.lang.Object
  extended byorg.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).


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)
           
 void addExpectedConnectValues(java.lang.String arg0, java.util.Properties arg1)
           
 void addExpectedGetPropertyInfoValues(java.lang.String arg0, java.util.Properties arg1)
           
 java.sql.Connection connect(java.lang.String arg0, java.util.Properties arg1)
           
 int getMajorVersion()
           
 int getMinorVersion()
           
 java.sql.DriverPropertyInfo[] getPropertyInfo(java.lang.String arg0, java.util.Properties arg1)
           
 boolean jdbcCompliant()
           
 void setExpectedAcceptsURLCalls(int calls)
           
 void setExpectedConnectCalls(int calls)
           
 void setExpectedGetMajorVersionCalls(int calls)
           
 void setExpectedGetMinorVersionCalls(int calls)
           
 void setExpectedGetPropertyInfoCalls(int calls)
           
 void setExpectedJdbcCompliantCalls(int calls)
           
 void setupAcceptsURL(boolean arg)
           
 void setupConnect(java.sql.Connection arg)
           
 void setupExceptionAcceptsURL(java.lang.Throwable arg)
           
 void setupExceptionConnect(java.lang.Throwable arg)
           
 void setupExceptionGetMajorVersion(java.lang.Throwable arg)
           
 void setupExceptionGetMinorVersion(java.lang.Throwable arg)
           
 void setupExceptionGetPropertyInfo(java.lang.Throwable arg)
           
 void setupExceptionJdbcCompliant(java.lang.Throwable arg)
           
 void setupGetMajorVersion(int arg)
           
 void setupGetMinorVersion(int arg)
           
 void setupGetPropertyInfo(java.sql.DriverPropertyInfo[] arg)
           
 void setupJdbcCompliant(boolean arg)
           
 void verify()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MockDriver

public MockDriver()
Method Detail

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.