Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Junit and Java Servlets.

3 views
Skip to first unread message

Ken Hilton

unread,
Aug 30, 2004, 2:21:55 PM8/30/04
to
Greetings Java Lovers,

Can anyone advise me on an effective way to employ JUnit with a
servlet? (I'm developing the servlet on Apache and JServ.)
Specifically, the test cases I intend to develop will require access
to back office services only accessible via the servlet which is of
course managed by JServ. Its not clear to me how to drive th servlet
(or JServ) via the Junit test runner. Any thoughts?

Ken Hilton
Kenosis LLC.

PS. If this is not the most appropriate subgroup for this question
please kind and feel free to direct me to the correct one, should you
know better. Thanks in advance for any help you can lend.

Anupam Sengupta

unread,
Sep 1, 2004, 1:33:30 AM9/1/04
to
Ken Hilton <ken...@comcast.net> wrote:
> Greetings Java Lovers,
>
> Can anyone advise me on an effective way to employ JUnit with a
> servlet? (I'm developing the servlet on Apache and JServ.)
> Specifically, the test cases I intend to develop will require access
> to back office services only accessible via the servlet which is of
> course managed by JServ. Its not clear to me how to drive th servlet
> (or JServ) via the Junit test runner. Any thoughts?
>

Maybe you want to check up on Cactus?
http://jakarta.apache.org/cactus/

You can also check the JUnit extensions for J2EE available at:
http://www.junit.org/news/extension/j2ee/index.htm

This article provides additional info on in-container testing with
JUnit:

http://www.theserverside.com/news/thread.tss?thread_id=28248


- Anupam

0 new messages