tag:blogger.com,1999:blog-23939980.post8961153272324492688..comments2023-09-25T17:29:29.440+10:00Comments on Java and other things: Contract of the interfacesAnonymoushttp://www.blogger.com/profile/11568089987006666223noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-23939980.post-63935390392147893992007-08-27T07:17:00.000+10:002007-08-27T07:17:00.000+10:00interesting one,but i wonder why anyone would iter...interesting one,<BR/><BR/>but i wonder why anyone would iterate over the elements of a Set and implicitly assert that implementations of Set provide an order of its elements (since Set doesn't assure any order of its elements!) at all?<BR/><BR/>In that sense, you can alway assert 'to much', but this is not the fault of the class under test, nor the testcase but the 'designer' of the testcase.<BR/><BR/>So what's the conclusion? As always - think before you act ... ;o)<BR/><BR/>Greetings <BR/><BR/><A HREF="http://gleichmann.blog.com" REL="nofollow">Mario</A>mario.gleichmannhttps://www.blogger.com/profile/10220150226701796268noreply@blogger.com