Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-7

[dbutils] MockResultSet: Throw UnsupportedOperationException for not implemented methods

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Labels:
      None
    • Environment:

      Operating System: Linux
      Platform: Other

    • Bugzilla Id:
      33108

      Description

      Currently the proxy generated by MockResultSet quietly returns null when it is
      invoked for a method that it does not implement. This may lead to strange an
      unexpected errors in other places. Please make it throw an
      UnsupportedOperationException instead.

      Michael

        Activity

        Hide
        bayard Henri Yandell added a comment -

        Seems like an improvement to me - have committed a fix.

        svn ci -m "Changed mocks to throw UnsupportedOperationException for unimplemented methods instead of being stubbed out as requested in DBUTILS-7" src/test/org/apache/commons/dbutils/MockResultSet*.java
        Sending src/test/org/apache/commons/dbutils/MockResultSet.java
        Sending src/test/org/apache/commons/dbutils/MockResultSetMetaData.java
        Transmitting file data ..
        Committed revision 419469.

        Show
        bayard Henri Yandell added a comment - Seems like an improvement to me - have committed a fix. svn ci -m "Changed mocks to throw UnsupportedOperationException for unimplemented methods instead of being stubbed out as requested in DBUTILS-7 " src/test/org/apache/commons/dbutils/MockResultSet*.java Sending src/test/org/apache/commons/dbutils/MockResultSet.java Sending src/test/org/apache/commons/dbutils/MockResultSetMetaData.java Transmitting file data .. Committed revision 419469.

          People

          • Assignee:
            Unassigned
            Reporter:
            mschuerig Michael Schuerig
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development