Package org.pjdbc.drivers
Class MockDriver.Expectation
java.lang.Object
org.pjdbc.drivers.MockDriver.Expectation
- Enclosing class:
MockDriver
Represents a configured expectation for SQL execution.
-
Method Summary
Modifier and TypeMethodDescriptionConfigure this expectation to compute results dynamically from the SQL.Configure this expectation to compute update count dynamically from the SQL.thenReturn(ResultSet rs) Configure this expectation to return a ResultSet.thenReturn(MockResultSet.Builder builder) Configure this expectation to return a ResultSet from a MockResultSet.Builder.Configure this expectation to throw an exception.thenUpdate(int count) Configure this expectation to return an update count.
-
Method Details
-
thenReturn
Configure this expectation to return a ResultSet. -
thenReturn
Configure this expectation to return a ResultSet from a MockResultSet.Builder. -
thenUpdate
Configure this expectation to return an update count. -
thenThrow
Configure this expectation to throw an exception. -
thenAnswer
Configure this expectation to compute results dynamically from the SQL. -
thenAnswerUpdate
Configure this expectation to compute update count dynamically from the SQL.
-