You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem? 1. Assume following equals implementation
@Override public boolean equals(final Object otherObj) { if ((otherObj == null)
|| !(otherObj instanceof DiscussionEntry)) { return false; }
if (otherObj == this) { return true; }
final DiscussionEntry other = (DiscussionEntry) otherObj; return new
EqualsBuilder().append( getCreatedOn(), other.getCreatedOn())
.append(getCreatedBy(), other.getCreatedBy()) .isEquals(); }
2. In code coverage you will see that the instanceof never yields false.
What is the expected output? What do you see instead?
Expected: equals to be tested with an object of another type. Actual: The
equals is not tested with an object of another type.
What version of the product are you using? On what operating system?
1.0.1 on Windows XP with TestNG on eclipse and Cobertura coverage through
Jenkins.
Original issue reported on code.google.com by stijn.ge...@gmail.com on 24 Jun 2011 at 11:36
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
stijn.ge...@gmail.com
on 24 Jun 2011 at 11:36The text was updated successfully, but these errors were encountered: