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 Alexander Lepekhine <pa...@mail.ru> on 2002/08/16 15:21:07 UTC

Can we use existing servlet

Hi all! Inspite of explanations how it works and a lot of examples I dont quite
understand can I use existing servlet for testing? I can test business logic
and now I want to test presentation. I have one "MainServlet" which is request
controller. Testing it with different request parameters will be enough for me.
This servlet already exists in application and is properly configured.
Can I use it instead of creating new instance and how can I do it?
Or I must create new instance for it and configure it again in a test case? I
know servlet address:
http://localhost:8080/uniref/MainServlet
Is it enough?
Thanks in advance.
Alexander


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Can we use existing servlet

Posted by Alexander Lepekhine <pa...@mail.ru>.
Realy I can leave with new servlet instance.
I have tried it and it works.
So, you dont neen to reply, if it is not common question.
Bag your pardon.
Alexander

-----Original Message-----
From: "Alexander Lepekhine" <pa...@mail.ru>
To: "Cactus User List" <ca...@jakarta.apache.org>
Date: Fri, 16 Aug 2002 17:21:07 +0400
Subject: Can we use existing servlet

> 
> Hi all! Inspite of explanations how it works and a lot of examples I dont
quite
> understand can I use existing servlet for testing? I can test business logic
> and now I want to test presentation. I have one "MainServlet" which is request
> controller. Testing it with different request parameters will be enough for
me.
> This servlet already exists in application and is properly configured.
> Can I use it instead of creating new instance and how can I do it?
> Or I must create new instance for it and configure it again in a test case? I
> know servlet address:
> http://localhost:8080/uniref/MainServlet
> Is it enough?
> Thanks in advance.
> Alexander
> 
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>