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.
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)...
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...
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
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.