Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to mock ResultSetMetaData?

796745Nov 20 2007 — edited Nov 20 2007
Can someone please tell me how to mock the ResultSetMetaData. I want to test a factory method which uses the ResultSetMetaData. The methods to be mocked are ResultSetMetaData.getColumnCount() and ResultSetMetaData.getColumnName(i).
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 18 2007
Added on Nov 20 2007
5 comments
597 views