jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luis Sérgio Oliveira <Luis.SOlive...@siemens.com>
Subject RE: EJB Persistance Testing
Date Tue, 04 Oct 2005 07:07:45 GMT

in addition, I've used DbUnit (www.dbunit.org) for setting up the 
database with initial values from XML files. It makes a great mix 
with Ant and JUnit.

Regarding what to test, how about a complex query, exceptional cases, like 
when you delete something that isn't there or crash out of a transaction?
It goes as simply as creating the test before developing the code. If 
you work this way you'll have plenty of opportunities to make tests.

You may also use the Façade pattern in front of your Entity Beans in which 
case DbUnit and Cactus are a good fit for your needs. Testing Session Beans 
is explained in the Cactus web site.

Best regards,

Luis Sergio Oliveira

-----Original Message-----
From: bala chandar [mailto:balachandar.p@gmail.com] 
Sent: terça-feira, 4 de Outubro de 2005 5:51
To: Cactus Users List
Subject: Re: EJB Persistance Testing

hi martin,
 You can go for MockEJB to test CMP.
 It is purely outcontainer testing. You can use Junit with MockEJB to check
the assertions.
 U can check it on www.mockejb.org <http://www.mockejb.org>

 On 10/4/05, Martin Ying <martinying@yahoo.com> wrote:
> Newly test infected, however don't see how to create
> CMP and BMP test. My lack of testing experience is
> raising questions like what should I be testing, how
> do I design good test for EJB persistence. It's
> either in the DB or not, what's there to test? Are
> there good article and/or books that go into detail
> about designing test cases specifically for EJB
> persistence layer testing? Thanks!
> __________________________________
> Yahoo! Mail - PC Magazine Editors' Choice 2005
> http://mail.yahoo.com
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org

View raw message