Commons DbUtils
  1. Commons DbUtils
  2. DBUTILS-7

[dbutils] MockResultSet: Throw UnsupportedOperationException for not implemented methods

    Details

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

      Operating System: Linux
      Platform: Other

      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
        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
        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:
            Michael Schuerig
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development