benjamin84 / fest

Automatically exported from code.google.com/p/fest
0 stars 0 forks source link

'equals' should throw UnsupportedOperationException #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
From Martin Ankerl:

It is helpful to create a base class for all Assert classes and override
equals() there, and throw an UnsupportedOperationException exception when
it is used. We found to sometimes write

assertThat(x).equals(y);

But of course this is not a test, and never throws an exception since all
that happens is that equals() returns false.

Original issue reported on code.google.com by Alex.Rui...@gmail.com on 24 Sep 2007 at 2:09

GoogleCodeExporter commented 9 years ago
Fixed.

Original comment by Alex.Rui...@gmail.com on 10 Oct 2007 at 10:29

GoogleCodeExporter commented 9 years ago
Set the module as a label, instead of being part of the title.

Original comment by Alex.Rui...@gmail.com on 1 Dec 2008 at 12:14