You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cactus-user@jakarta.apache.org by javalist <my...@hotmail.com> on 2003/10/27 14:19:45 UTC

how to test servlet service method

hi:
    there is a question confuse me. how to test servlet init() ,service() method. my class extends httpservlet.I think it may test these method side effect.I don't know how to test.such as if these method throws some exceptions .how to assert it.     
best regards.

RE: how to test servlet service method

Posted by Vincent Massol <vm...@pivolis.com>.
Hi,

Please read http://jakarta.apache.org/cactus/writing/howto_testcase.html

Thanks
-Vincent

> -----Original Message-----
> From: javalist [mailto:myjavalist@hotmail.com]
> Sent: 27 October 2003 14:20
> To: cactus-user@jakarta.apache.org
> Subject: how to test servlet service method
> 
> hi:
>     there is a question confuse me. how to test servlet init()
,service()
> method. my class extends httpservlet.I think it may test these method
side
> effect.I don't know how to test.such as if these method throws some
> exceptions .how to assert it.
> best regards.