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

        Michael Schuerig created issue -
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 33108 12342000
        Henri Yandell made changes -
        Key COM-1848 DBUTILS-7
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Affects Version/s 1.0 Final [ 12311651 ]
        Project Commons [ 12310458 ] Commons DbUtils [ 12310470 ]
        Component/s DbUtils [ 12311110 ]
        Henri Yandell made changes -
        Affects Version/s 1.0 Final [ 12311724 ]
        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.
        Henri Yandell made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 1.1 [ 12311973 ]
        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        537d 7h 2m 1 Henri Yandell 06/Jul/06 14:56
        Resolved Resolved Closed Closed
        544d 17h 33m 1 Henri Yandell 02/Jan/08 07:29

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development