jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelly C. Goedert" <kelly.goed...@nexxera.com>
Subject Re: testing a POJO
Date Thu, 26 Aug 2004 17:10:36 GMT
I tried according to the example using a

ServletTestSuite() and I get this

|java.lang.ExceptionInInitializerError
	at br.com.rgarquivo.persistence.TestSqlMapsConfig.testGetSqlMapInstance(TestSqlMapsConfig.java:32)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

I'll try something different |



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
>
>
>  
>


Mime
View raw message