On Tue, Jun 9, 2009 at 1:38 AM, Irving, Dave<[email protected]> wrote: > > Hi, > > .. > >> In my case I cannot write JUnit test cases because the Exception > thrown >> by Assert.fail() is caught up in the framework therefore not allowing >> me to verify failures. > > Sorry if my response is complete nonsense - its been a while since I've > used Mina in anger :) > Can't you just set an ExceptionMonitor instance which doesn't swallow > exceptions (or captures them for relaying back to your test if you're > not running off the main thread)? > > org.apache.mina.util.ExceptionMonitor#setInstance(ExceptionMonitor > instance) > > http://svn.apache.org/viewvc/mina/trunk/core/src/main/java/org/apache/mi > na/util/ExceptionMonitor.java?view=co
Aha, I'd not come across this exception monitoring. Cheers for the heads up. > > >> Cheers, > >> mike > > Dave > > > > Notice to recipient: > The information in this internet e-mail and any attachments is confidential > and may be privileged. It is intended solely for the addressee. If you are > not the intended addressee please notify the sender immediately by telephone. > If you are not the intended recipient, any disclosure, copying, distribution > or any action taken or omitted to be taken in reliance on it, is prohibited > and may be unlawful. > > When addressed to external clients any opinions or advice contained in this > internet e-mail are subject to the terms and conditions expressed in any > applicable governing terms of business or client engagement letter issued by > the pertinent Bank of America group entity. > > If this email originates from the U.K. please note that Bank of America, > N.A., London Branch, Banc of America Securities Limited and MBNA Europe Bank > Limited are authorised and regulated by the Financial Services Authority. > For all U.K. corporate disclosures, please refer to > www.bankofamerica.com/ukcompanies > -- god loves atheists, Fact: http://www.mrwiggleslovesyou.com/comics/rehab477.jpg
