Hi,
    i am trying to write a sample code for JspTestCase ...
I have the cactus 1.5 jars (latest vewrsion) in my lib and am using Websphere 4.0
i had earlier writtena code with simialr config for CactusStrutsTestCase which is working fine.
 
Now to start with jspTestCase i hae written the following sample code
 
 
public class TestJspOut extends JspTestCase
{
      public TestJspOut(String theName) {
        super(theName);
      }
 
     public static Test suite() {
       return new TestSuite(TestJspOut.class);
     }
 
     public void beginOut(WebRequest theRequest)throws IOException  {
         theRequest.setURL("localhost", "/cac", "/test.jsp", null,
                 null);
     }
 

     public void testOut() throws IOException {
        assertEquals("/test.jsp", request.getRequestURI());
        assertEquals("localhost", request.getServerName());
        assertEquals(9080, request.getServerPort());
    }
 
}
 
 
when i

Thanx & Regards,
Priyank Patwa.
Cognizant Technology Solutions India Pvt. Ltd.
Infotech Park,
Hinjawadi,
Pune 411027,
India.
Ph. 2931100 extn: 2476

 

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. Any unauthorised review, use, disclosure, 
dissemination, forwarding, printing or copying of this email or any action taken in 
reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to