[Opensymphony-oscache] Handling junit failures in threads other than the main thread

rintcius <[email protected]> Wed, 21 Sep 2005 03:55:25 CDT
Newsgroups gmane.comp.java.open-symphony.os-cache
Message-ID <16680036.1127293010820.JavaMail.os-j2ee@opensymphony01.contegix.com>
Are you guys aware that junit test failures that occur in threads other than the main thread are not propagated to the test itself? E.g. when looking at the problem mentioned in http://forums.opensymphony.com/thread.jspa?threadID=6334&tstart=0 the failures below are logged. However the tests themselves succeed!

junit.framework.AssertionFailedError: Thread should have blocked until a new cache entry was ready
	at junit.framework.Assert.fail(Assert.java:47)
	at com.opensymphony.oscache.base.TestConcurrency$GetEntry.run(TestConcurrency.java:301)
	at java.lang.Thread.run(Thread.java:534)
junit.framework.AssertionFailedError: Thread should have blocked until a new cache entry was ready
	at junit.framework.Assert.fail(Assert.java:47)
	at com.opensymphony.oscache.base.TestConcurrency$GetEntry.run(TestConcurrency.java:301)
	at java.lang.Thread.run(Thread.java:534)

---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=6955&messageID=15471#15471