|
From: Steve F. <st...@m3...> - 2002-02-25 23:24:24
|
From: "Huy Duong" <hd...@eu...> > Going through the unreleased 0.02 tree, I noticed that the > [...] > The implementation is not uniform (probably because it was implemented by > different developers), and leads to confusion. that was probably the case ;-) > Another thing is that the MockSingleRowResultSet requires that all columns > in the ResultSet be accessed in order for it to pass the verify test. I'm > not sure this is a good idea as not all columns are accessed in a ResultSet > for a given query and shouldn't be required in order for it to pass. Don't forget that a mock result set only includes the columns you put in it, not the real ones in the database, and that the single row result set will be used in a very focussed test to exercise a particular data extraction. You should only set up the getters you expect to be called, so it seems reasonable to complain if that doesn't happen. The multi row set will probably be used in a less focussed test, perhaps to exercise some looping, so you should be less concerned about what gets retreived from an individual row. Steve |