Uses of Class
org.pjdbc.drivers.MockDriver.Expectation
Packages that use MockDriver.Expectation
-
Uses of MockDriver.Expectation in org.pjdbc.drivers
Methods in org.pjdbc.drivers that return MockDriver.ExpectationModifier and TypeMethodDescriptionMockDriver.Expectation.thenAnswer(Function<String, ResultSet> fn) Configure this expectation to compute results dynamically from the SQL.MockDriver.Expectation.thenAnswerUpdate(Function<String, Integer> fn) Configure this expectation to compute update count dynamically from the SQL.MockDriver.Expectation.thenReturn(ResultSet rs) Configure this expectation to return a ResultSet.MockDriver.Expectation.thenReturn(MockResultSet.Builder builder) Configure this expectation to return a ResultSet from a MockResultSet.Builder.MockDriver.Expectation.thenThrow(SQLException ex) Configure this expectation to throw an exception.MockDriver.Expectation.thenUpdate(int count) Configure this expectation to return an update count.static MockDriver.ExpectationConfigure an expectation for SQL containing the given string.static MockDriver.ExpectationMockDriver.whenMatches(String sqlPattern) Configure an expectation for SQL matching the given regex pattern.