RE: Determine Servlet Name

<[email protected]>
Newsgroups gmane.comp.jakarta.cactus.user
Message-ID <795604853.1155221901522.JavaMail.root@fepweb01>
Yes, I have used Cactus in the past.  My question revolves around the DefaultHttpClient class.  Looking at the source, I see within the callRunTest method the following method:

// Specify the service to call on the redirector side
theRequest.addParameter(HttpServiceDefinition.SERVICE_NAME_PARAM,
      ServiceEnumeration.CALL_TEST_SERVICE.toString(),
       WebRequest.GET_METHOD);

My question is, how does cactus determine the service name of the servlet under test?

William Ferguson wrote:

>Perry,
>
>Mail archive at
>http://www.mail-archive.com/[email protected]/
>
>Cactus is a tool that enables you to run your Unittests inside a
>container. Typically this means that you construct Junit TestCase
>classes that extends from org.apache.cactus.ServletTestCase
>These are they executed locally and as part of the Cactus framework, the
>request for each test is transmitted over the wire to the Cactus Servlet
>which must be deployed into your applciation along with a copy of your
>test case classes. The Cactus Servlet then executes the request test
>inside the container and transmits the result back to the local TestCase
>instance.
>
>
>William 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.