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

myConnectCalls

private com.mockobjects.ExpectationCounter myConnectCalls

myActualConnectReturnValues

private mockmaker.ReturnValues myActualConnectReturnValues

myConnectParameter0Values

private com.mockobjects.ExpectationList myConnectParameter0Values

myConnectParameter1Values

private com.mockobjects.ExpectationList myConnectParameter1Values

myAcceptsURLCalls

private com.mockobjects.ExpectationCounter myAcceptsURLCalls

myActualAcceptsURLReturnValues

private mockmaker.ReturnValues myActualAcceptsURLReturnValues

myAcceptsURLParameter0Values

private com.mockobjects.ExpectationList myAcceptsURLParameter0Values

myGetPropertyInfoCalls

private com.mockobjects.ExpectationCounter myGetPropertyInfoCalls

myActualGetPropertyInfoReturnValues

private mockmaker.ReturnValues myActualGetPropertyInfoReturnValues

myGetPropertyInfoParameter0Values

private com.mockobjects.ExpectationList myGetPropertyInfoParameter0Values

myGetPropertyInfoParameter1Values

private com.mockobjects.ExpectationList myGetPropertyInfoParameter1Values

myGetMajorVersionCalls

private com.mockobjects.ExpectationCounter myGetMajorVersionCalls

myActualGetMajorVersionReturnValues

private mockmaker.ReturnValues myActualGetMajorVersionReturnValues

myGetMinorVersionCalls

private com.mockobjects.ExpectationCounter myGetMinorVersionCalls

myActualGetMinorVersionReturnValues

private mockmaker.ReturnValues myActualGetMinorVersionReturnValues

myJdbcCompliantCalls

private com.mockobjects.ExpectationCounter myJdbcCompliantCalls

myActualJdbcCompliantReturnValues

private mockmaker.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.