> -----Original Message-----
> From: Kelly C. Goedert [mailto:[EMAIL PROTECTED]
> 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:[EMAIL PROTECTED]
> >>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: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to