db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Armin Waibel <ar...@code-au-lait.de>
Subject Re: Writing OJB Unit Tests
Date Mon, 27 Oct 2003 07:20:30 GMT
Hi David,

David Corbin wrote:
> I'm writing a unit test to expose a paricular problem.  In the process, I'm 
> looking at another test case for the same package: 
> org.apache.ojb.odmg.LockTestUncommitedReads.java
> The setUp code for this unit-test eats the exception that can be thrown by 
> Database.open().  While I suppose a failure during setUp will result 
> ultimately in a failure somewhere else in the test, should that exception 
> either be thrown directly, or at least rethrown in someway?
I think the exception shouldn't be caught in the setup method,
else junit does not report the 'real' reason for test failures.


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

View raw message