|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.test.mock.AbstractMockDatabase
net.sourceforge.sqlunit.test.mock.SQLUnitMockDatabase
public class SQLUnitMockDatabase
Mock database to supply results.
Constructor Summary | |
---|---|
SQLUnitMockDatabase()
|
Method Summary | |
---|---|
com.mockrunner.mock.jdbc.MockResultSet |
anotherInResultSet(java.lang.Integer index)
A method that returns the string "another" as a single column in a single row in a single resultset. |
com.mockrunner.mock.jdbc.MockResultSet |
anotherMultipleResultsDifferentTypes(java.lang.Integer index)
Another method returning multiple result sets. |
com.mockrunner.mock.jdbc.MockResultSet |
anotherSimpleResult(java.lang.Integer index)
A simple method returning a single resultset with a single int column. |
com.mockrunner.mock.jdbc.MockResultSet |
aSimpleMultiColResult(java.lang.Integer index)
Returns a single resultset with multiple columns in each row. |
com.mockrunner.mock.jdbc.MockResultSet |
aSimpleNullResult(java.lang.Integer index)
A simple method returning a single resultset with a single int column which contains a NULL. |
com.mockrunner.mock.jdbc.MockResultSet |
aSimpleResult(java.lang.Integer index)
A simple method returning a single resultset with a single int column. |
com.mockrunner.mock.jdbc.MockResultSet |
aSimpleStringResult(java.lang.Integer index)
Returns a MockResult with a single row and a single column named 'foo' containing the String value 'foo'. |
com.mockrunner.mock.jdbc.MockResultSet |
blobResult(java.lang.Integer index)
Returns a BLOB datatype which is the contents of SQLUnit.class. |
com.mockrunner.mock.jdbc.MockResultSet |
bytesInResultSet(java.lang.Integer index)
Returns a Java object in a single result set. |
com.mockrunner.mock.jdbc.MockResultSet |
clobResult(java.lang.Integer index)
Returns a CLOB datatype from the same canned XML file as the method above, but specifies this as a CLOB data type. |
com.mockrunner.mock.jdbc.MockResultSet |
deleteRows(java.lang.Integer index)
Method to test the foreach tag. |
com.mockrunner.mock.jdbc.MockResultSet |
exceptionResult(java.lang.Integer index)
A method that is designed to throw an SQLException. |
com.mockrunner.mock.jdbc.MockResultSet |
incrementDecimalAndReturn(java.lang.Integer index)
Same as incrementNumericAndReturn1 since the underlying datatype is BigDecimal in both cases, and the scalar is built based on actual datatype. |
com.mockrunner.mock.jdbc.MockResultSet |
incrementNumericAndReturn(java.lang.Integer index)
Returns a canned NUMERIC value in an INOUT Param. |
com.mockrunner.mock.jdbc.MockResultSet |
insert1Row(java.lang.Integer index)
Method to test the foreach tag. |
com.mockrunner.mock.jdbc.MockResultSet |
insert2Row(java.lang.Integer index)
Method to test the foreach tag. |
com.mockrunner.mock.jdbc.MockResultSet |
javaObjectResult(java.lang.Integer index)
Returns a JAVA_OBJECT which is the same as that serialized in Dictionary. |
com.mockrunner.mock.jdbc.MockResultSet |
lobInResultSet(java.lang.Integer index)
Returns an inputstream in a single result set. |
com.mockrunner.mock.jdbc.MockResultSet |
multipleResults(java.lang.Integer index)
A method returning multiple result sets. |
com.mockrunner.mock.jdbc.MockResultSet |
refCursorReturn(java.lang.Integer index)
Returns an Oracle style REF CURSOR in the first outparam element. |
com.mockrunner.mock.jdbc.MockResultSet |
resultAndException(java.lang.Integer index)
Returns the result code and the exception. |
com.mockrunner.mock.jdbc.MockResultSet |
resultAndMultilineException(java.lang.Integer index)
Returns an error code and a multi-line exception message. |
com.mockrunner.mock.jdbc.MockResultSet |
resultAndOneResultSet(java.lang.Integer index)
Returns a result code and a single resultset. |
com.mockrunner.mock.jdbc.MockResultSet |
returnCountOfRowsInserted(java.lang.Integer index)
Method to test the foreach tag. |
com.mockrunner.mock.jdbc.MockResultSet |
returnDecimalOutParam(java.lang.Integer index)
Same as returnNumericOutParam since underlying datatype is BigDecimal in both cases, and the scalar is built based on actual datatype. |
com.mockrunner.mock.jdbc.MockResultSet |
returnNumericAndDecimalInResultSet(java.lang.Integer index)
Returns a single row with 2 columns, one NUMERIC and one DECIMAL. |
com.mockrunner.mock.jdbc.MockResultSet |
returnNumericOutParam(java.lang.Integer index)
Returns a NUMERIC in an OUT Param. |
com.mockrunner.mock.jdbc.MockResultSet |
selectDatabase(java.lang.Integer index)
Takes no parameters and returns the name of the database. |
com.mockrunner.mock.jdbc.MockResultSet |
simpleReturnCode(java.lang.Integer index)
A method returning a return code only. |
com.mockrunner.mock.jdbc.MockResultSet |
superHeroesSortedByAlias(java.lang.Integer index)
Same as superHeroesSortedNaturally() but rows are returned sorted by alias. |
com.mockrunner.mock.jdbc.MockResultSet |
superHeroesSortedByAliasAndName(java.lang.Integer index)
Same as superHeroesSortedNaturally() but rows are returned sorted by last name (lname). |
com.mockrunner.mock.jdbc.MockResultSet |
superHeroesSortedByAliasDesc(java.lang.Integer index)
Same as superHeroesSortedNaturally() but rows are returned sorted descending by alias. |
com.mockrunner.mock.jdbc.MockResultSet |
superHeroesSortedNaturally(java.lang.Integer index)
Returns a resultset which is sorted "naturally", ie by ascending order of columns as they appear in the resultset. |
com.mockrunner.mock.jdbc.MockResultSet |
updateCount1(java.lang.Integer index)
Returns a update count of 1. |
com.mockrunner.mock.jdbc.MockResultSet |
updateCount2(java.lang.Integer index)
Returns a update count of 2. |
com.mockrunner.mock.jdbc.MockResultSet |
updateCountExecuteFailed(java.lang.Integer index)
Returns an update count of Statement.EXECUTE_FAILED. |
com.mockrunner.mock.jdbc.MockResultSet |
voidReturnAndNoResultSet(java.lang.Integer index)
Returns no return code and no resultset. |
com.mockrunner.mock.jdbc.MockResultSet |
xmlResultSet(java.lang.Integer index)
Returns a canned XML string from an included file. |
Methods inherited from class net.sourceforge.sqlunit.test.mock.AbstractMockDatabase |
---|
getResultSet, getResultSet |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLUnitMockDatabase()
Method Detail |
---|
public final com.mockrunner.mock.jdbc.MockResultSet aSimpleResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet anotherSimpleResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet anotherInResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet aSimpleNullResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet aSimpleStringResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet aSimpleMultiColResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet multipleResults(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet anotherMultipleResultsDifferentTypes(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet simpleReturnCode(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet exceptionResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet refCursorReturn(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet resultAndOneResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet voidReturnAndNoResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet resultAndException(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet resultAndMultilineException(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet updateCount1(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet updateCount2(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet updateCountExecuteFailed(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet bytesInResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet lobInResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet xmlResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet clobResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet blobResult(java.lang.Integer index)
index
- the resultset id.
public final com.mockrunner.mock.jdbc.MockResultSet javaObjectResult(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet deleteRows(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet insert1Row(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet insert2Row(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet returnCountOfRowsInserted(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet superHeroesSortedNaturally(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet superHeroesSortedByAliasAndName(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet superHeroesSortedByAlias(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet superHeroesSortedByAliasDesc(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet returnNumericAndDecimalInResultSet(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet returnNumericOutParam(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet incrementNumericAndReturn(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet returnDecimalOutParam(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet incrementDecimalAndReturn(java.lang.Integer index)
index
- the result set id.
public final com.mockrunner.mock.jdbc.MockResultSet selectDatabase(java.lang.Integer index)
index
- the result set id.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |