https://issues.apache.org/bugzilla/show_bug.cgi?id=49164

           Summary: junit test ignores failures in threads
           Product: Tomcat 7
           Version: trunk
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: Cluster
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: felix.schumac...@internetallee.de


Created an attachment (id=25328)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25328)
channel exceptions from different threads to main junit thread

org.apache.catalina.tribes.test.interceptors.TestOrderInterceptor#testOrder2
starts a few threads to test concurrently sending events to one destination. It
tries to make the junit test case fail in case of an exception. Junit will not
see those failures, since they are in different threads.

Attached patch will channel the exception to main junit thread, which can call
fail() if exceptions were catched. It will log only the first exception in the
queue.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to