Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    Hi Sedj, Now I am not getting this exception, Have you got any Idea about my previous question about setting method to post in CatusTestCase. Thanks for the reply.
  2. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    One more problem SEDJ now I am getting this exception when runnung MockstrutsTestcase Testcase: testLogon(au.com.qtech.coreweb.unittests.ModelAddTest1): Caused an ERROR [junit] null [junit] java.lang.ClassFormatError [junit] at java.lang.Throwable.<init>(Throwable.java)...
  3. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    It is fine when I am exteding from MockStrutsTestCase .But I want to do some In-container testing using CactusStrutsTestCase .I want to do the testing with Post method in my code like Adding an item to database when user clicking Add button.It is happening in Post method. In execute method it is...
  4. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    Hi , I checked the MockStrutcase code , it is creating the Simulator request object in MockStrutsTestCase class .I am clarified about casting. so now I want a help to set the requestMethod to Post, how can I do it from my test class. Thanks
  5. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    I took this code from this site. I could not work it out. http://javaboutique.internet.com/tutorials/StrutsTestCase/index-10.html
  6. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    it returning servletunit.struts.StrutsRequestWrapper type this class and and the simulator have the implementation of HttpServletRequest. Thanks
  7. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    Hi HttpServletRequestSimulator request =(HttpServletRequestSimulator)getRequest(); this is what I done in my code. My class exytends CactusStrutsTestCase. and this is the exception. java.lang.ClassCastException: servletunit.struts.StrutsRequestWrapper at...
  8. PPJOHNSON

    Problem running javac with ant in WAS 5

    Hi Mike, have you sort it out?
  9. PPJOHNSON

    HttpServletRequestSimulator throws classcast exception

    Hi I am working with automated testing using CactusTestcase from sourceforge.net. I am having a problem I want to set the request method to POST from my testcase.Since there is no setMethod() is in the HttpServletRequest I ahve to use HttpServletRequestSimulator class, but on runtime it throwing...

Part and Inventory Search

Back
Top