hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Dillon <m...@embody.org>
Subject Re: Test classes - use assertEquals(exp,act) instead of assertTrue(actual=expected)?
Date Tue, 20 Apr 2010 23:55:28 GMT
Shouldn't that be assertSame() to retain the meaning of "=="?

-md

"sebb" <sebbaz@gmail.com> wrote:

>I just changed TestIdentityInputStream to use assertEquals(exp,actual)
>rather than assertTrue(actual==exp), as this shows the actual and
>expected values if the test fails.
>
>Any objections if I work through the other test classes doing the same?
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
>For additional commands, e-mail: dev-help@hc.apache.org
>
Mime
View raw message