From: SourceForge.net <no...@so...> - 2009-03-31 13:53:03
|
Feature Requests item #2722890, was opened at 2009-03-31 01:24 Message generated for change (Comment added) made by dsaff You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=2722890&group_id=15278 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None >Status: Pending >Resolution: Invalid Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: AssertException must be passed to testing thread. Initial Comment: Nowtime (JUnit 4.5) this test does not fall: import static org.junit.Assert.*; import org.junit.Test; public class Tester { @Test public void test() throws Exception{ Thread t = new Thread(new Runnable(){ public void run() { assertEquals(1,2);// error } }); t.start(); Thread.sleep(1000);// wait } } ---------------------------------------------------------------------- >Comment By: David Saff (dsaff) Date: 2009-03-31 09:52 Message: To do that, we'd have to use Thread.setUncaughtExceptionHandler, which could potentially stomp on user code. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=365278&aid=2722890&group_id=15278 |