public abstract class CommonMockDataSource extends MockObject implements javax.sql.DataSource
| Constructor and Description |
|---|
CommonMockDataSource() |
| Modifier and Type | Method and Description |
|---|---|
java.sql.Connection |
getConnection()
Returns connection instance passed by setupConnection,
and increments the number of connect calls.
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Calls notImplemented.
|
int |
getLoginTimeout()
Calls notImplemented.
|
java.io.PrintWriter |
getLogWriter()
Calls notImplemented.
|
void |
setExpectedConnectCalls(int callCount)
Register the number of connections the test should make.
|
void |
setLoginTimeout(int seconds)
Calls notImplemented.
|
void |
setLogWriter(java.io.PrintWriter out)
Calls notImplemented.
|
void |
setupConnection(java.sql.Connection aConnection)
Pass the connection instance for use with tests.
|
notImplemented, notYetImplemented, verifypublic void setExpectedConnectCalls(int callCount)
public void setupConnection(java.sql.Connection aConnection)
public java.sql.Connection getConnection()
getConnection in interface javax.sql.DataSourcepublic java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
getConnection in interface javax.sql.DataSourcepublic int getLoginTimeout()
getLoginTimeout in interface javax.sql.CommonDataSourcepublic java.io.PrintWriter getLogWriter()
getLogWriter in interface javax.sql.CommonDataSourcepublic void setLoginTimeout(int seconds)
setLoginTimeout in interface javax.sql.CommonDataSourcepublic void setLogWriter(java.io.PrintWriter out)
setLogWriter in interface javax.sql.CommonDataSourceCopyright © 2002 Mock Objects. All Rights Reserved.