jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: testing a POJO
Date Thu, 26 Aug 2004 17:16:38 GMT


> -----Original Message-----
> From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> Sent: jeudi 26 août 2004 19:11
> To: Cactus Users List
> Subject: Re: testing a POJO
> 
> I tried according to the example using a
> 
> ServletTestSuite() and I get this
> 
> |java.lang.ExceptionInInitializerError
> 	at
> br.com.rgarquivo.persistence.TestSqlMapsConfig.testGetSqlMapInstance(TestS
> qlMapsConfig.java:32)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm
> pl.java:25)
> 
> I'll try something different |

But that error seems to be coming from your code, no?
(TestSqlMapsConfig.java:32)

I'd suggest you try with a very simple POJO and start from there (just to be
sure the pb is Cactus). If you share the code with us we can also try it.

Thanks
-Vincent

> 
> 
> 
> Vincent Massol wrote:
> 
> >Hi Kelly,
> >
> >
> >
> >>-----Original Message-----
> >>From: Kelly C. Goedert [mailto:kelly.goedert@nexxera.com]
> >>Sent: jeudi 26 août 2004 18:56
> >>To: Cactus Users List
> >>Subject: testing a POJO
> >>
> >>How can I test a POJO that is on the server side, that is not a servlet
> >>or EJB but is inside the container?
> >>
> >>I tried using ServletTestCase, but it didn't work out.
> >>
> >>
> >
> >You can use use any Cactus TestCase (ServletTestCase, JspTestCase,
> >FilterTestCase). You can also use a ServletTestSuite() as described in
> >option B of step 2 in
> >http://jakarta.apache.org/cactus/writing/howto_testcase.html.
> >
> >
> >
> >>Any ideas?
> >>
> >>
> >
> >What didn't work?
> >
> >-Vincent
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org



Mime
View raw message