From: <ric...@vo...> - 2003-02-28 11:45:38
|
Hi all, We're using mockobjects heavily for our unit tests. Currently we're testing a sql-update with PreparedStatement. I noticed that CommonMockPreparedStatement is using ExpectationSet, which is using HashSet for internal storage. Since HashSet doesn't have a guaranteed iteration order, it is in my opinion not suitable for PreparedStatement. CommonMockPreparedStatement should use ExpectationList instead, so the order is guaranteed (which is very important in a PreparedStatement...) Richard. |