You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-dev@jakarta.apache.org by bu...@apache.org on 2003/02/12 18:19:38 UTC

DO NOT REPLY [Bug 17012] New: - Incompatibility between junit 3.8.1 and cactus 1.4.1

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17012>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=17012

Incompatibility between junit 3.8.1 and cactus 1.4.1

           Summary: Incompatibility between junit 3.8.1 and cactus 1.4.1
           Product: Cactus
           Version: 1.4.1
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Client Side
        AssignedTo: cactus-dev@jakarta.apache.org
        ReportedBy: misak@vantra.com


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 assert equals for Strings fails. 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 the check is made for 
exception class name instead of using 'instance of' operator. This causes 
string comparisons to be reversed and reported as errors instead of failures as 
junit reports them.

---------------------------------------------------------------------
To unsubscribe, e-mail: cactus-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: cactus-dev-help@jakarta.apache.org