jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boulatian, Misak" <mi...@vantra.com>
Subject Re: failures and errors are reversed in cactus compared with juni t
Date Thu, 13 Feb 2003 15:46:07 GMT
Hi Paul,
I looked further at the source code for cactus.  I have found
incompatibility between junit 3.8.1 and cactus 1.4.1. In this new version of
junit a new exception was introduced called ComparisonFailure thrown when an
assertEquals(String, String, String) for strings fails (by the way
assertEquals with 3 string arguments is new and available for only junit
3.8.1). This class is a direct subclass of AssertionFailedError. Whenever
string comparison fails junit throws ComparisonFailure instead of
AssertionFailedError. In cactus source code for HttpURLConnection
doTest(WebRequest theRequest) method in class
org.apache.cactus.client.AbstractHttpClient the check is made for exception
class name instead of using 'instance of' operator. This causes string
comparisons with assertEquals(String, String, String) to be reversed and
reported as errors instead of failures as junit reports them.

Thanks,<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />

Misak M. Boulatian


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message