org.objectweb.cjdbc.scenario.tools.mock
Class MockDriver

java.lang.Object
  extended byorg.objectweb.cjdbc.scenario.tools.mock.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)
          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

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)
setExpectedConnected

Parameters:
calls - value

addExpectedConnectValues

public void addExpectedConnectValues(java.lang.String arg0,
                                     java.util.Properties arg1)
addExpectedConnect

Parameters:
arg0 - value
arg1 - value

connect

public java.sql.Connection connect(java.lang.String arg0,
                                   java.util.Properties arg1)
                            throws java.sql.SQLException
Connect

Specified by:
connect in interface java.sql.Driver
Parameters:
arg0 - value
arg1 - value
Returns:
connection
Throws:
java.sql.SQLException - if exception

setupExceptionConnect

public void setupExceptionConnect(java.lang.Throwable arg)
setupExceptionConnect

Parameters:
arg - value

setupConnect

public void setupConnect(java.sql.Connection arg)
setupConnect

Parameters:
arg - value

setExpectedAcceptsURLCalls

public void setExpectedAcceptsURLCalls(int calls)
setExpectedAcceptsURLCalls

Parameters:
calls - value

addExpectedAcceptsURLValues

public void addExpectedAcceptsURLValues(java.lang.String arg0)
addExpectedAcceptsURLValues

Parameters:
arg0 - value

acceptsURL

public boolean acceptsURL(java.lang.String arg0)
                   throws java.sql.SQLException
Specified by:
acceptsURL in interface java.sql.Driver
Throws:
java.sql.SQLException
See Also:
Driver.acceptsURL(java.lang.String)

setupExceptionAcceptsURL

public void setupExceptionAcceptsURL(java.lang.Throwable arg)
setupExceptionAcceptsURL

Parameters:
arg - value

setupAcceptsURL

public void setupAcceptsURL(boolean arg)
setupAcceptsURL

Parameters:
arg - value

setExpectedGetPropertyInfoCalls

public void setExpectedGetPropertyInfoCalls(int calls)
setExpectedGetPropertyInfoCalls

Parameters:
calls - value

addExpectedGetPropertyInfoValues

public void addExpectedGetPropertyInfoValues(java.lang.String arg0,
                                             java.util.Properties arg1)
addExpectedGetPropertyInfoValues

Parameters:
arg0 - value
arg1 - value

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
See Also:
Driver.getPropertyInfo(java.lang.String, java.util.Properties)

setupExceptionGetPropertyInfo

public void setupExceptionGetPropertyInfo(java.lang.Throwable arg)
setupExceptionGetPropertyInfo

Parameters:
arg - value

setupGetPropertyInfo

public void setupGetPropertyInfo(java.sql.DriverPropertyInfo[] arg)
setupGetPropertyInfo

Parameters:
arg - value

setExpectedGetMajorVersionCalls

public void setExpectedGetMajorVersionCalls(int calls)
setExpectedGetMajorVersionCalls

Parameters:
calls - value

getMajorVersion

public int getMajorVersion()
Specified by:
getMajorVersion in interface java.sql.Driver
See Also:
Driver.getMajorVersion()

setupExceptionGetMajorVersion

public void setupExceptionGetMajorVersion(java.lang.Throwable arg)
setupExceptionGetMajorVersion

Parameters:
arg - value

setupGetMajorVersion

public void setupGetMajorVersion(int arg)
setupGetMajorVersion

Parameters:
arg - value

setExpectedGetMinorVersionCalls

public void setExpectedGetMinorVersionCalls(int calls)
setExpectedGetMinorVersionCalls

Parameters:
calls - value

getMinorVersion

public int getMinorVersion()
Specified by:
getMinorVersion in interface java.sql.Driver
See Also:
Driver.getMinorVersion()

setupExceptionGetMinorVersion

public void setupExceptionGetMinorVersion(java.lang.Throwable arg)
setupExceptionGetMinorVersion

Parameters:
arg - value

setupGetMinorVersion

public void setupGetMinorVersion(int arg)
setupGetMinorVersion

Parameters:
arg - value

setExpectedJdbcCompliantCalls

public void setExpectedJdbcCompliantCalls(int calls)
setExpectedJdbcCompliantCalls

Parameters:
calls - value

jdbcCompliant

public boolean jdbcCompliant()
jdbcCompliant

Specified by:
jdbcCompliant in interface java.sql.Driver
See Also:
Driver.jdbcCompliant()

setupExceptionJdbcCompliant

public void setupExceptionJdbcCompliant(java.lang.Throwable arg)
setupExceptionJdbcCompliant

Parameters:
arg - value

setupJdbcCompliant

public void setupJdbcCompliant(boolean arg)
setupJdbcCompliant

Parameters:
arg - value

verify

public void verify()
verify



Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.