Issue Details (XML | Word | Printable)

Key: DBUTILS-7
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Michael Schuerig
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons DbUtils

[dbutils] MockResultSet: Throw UnsupportedOperationException for not implemented methods

Created: 15/Jan/05 06:53 AM   Updated: 02/Jan/08 07:29 AM
Return to search
Component/s: None
Affects Version/s: 1.0
Fix Version/s: 1.1

Time Tracking:
Not Specified

Environment:
Operating System: Linux
Platform: Other

Bugzilla Id: 33108
Resolution Date: 06/Jul/06 01:56 PM


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell added a comment - 06/Jul/06 01:56 PM
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.