Class Expectations.BasicExpectation

    • Constructor Detail

      • BasicExpectation

        protected BasicExpectation​(int expectedRowCount)
    • Method Detail

      • verifyOutcome

        public final void verifyOutcome​(int rowCount,
                                        PreparedStatement statement,
                                        int batchPosition,
                                        String statementSQL)
        Description copied from interface: Expectation
        Perform verification of the outcome of the RDBMS operation based on the type of expectation defined.
        Specified by:
        verifyOutcome in interface Expectation
        rowCount - The RDBMS reported "number of rows affected".
        statement - The statement representing the operation
        batchPosition - The position in the batch (if batching)
        statementSQL - The SQL backing the prepared statement, for logging purposes
      • canBeBatched

        public boolean canBeBatched()
        Description copied from interface: Expectation
        Is it acceptable to combiner this expectation with statement batching?
        Specified by:
        canBeBatched in interface Expectation
        True if batching can be combined with this expectation; false otherwise.
      • determineRowCount

        protected int determineRowCount​(int reportedRowCount,
                                        PreparedStatement statement)