in
servletunit.struts.MockStrutsTestCase.actionPerform(),
test not only for NullPointerException, but also
javax.servlet.ServletException because
/home/cvspublic/jakarta-struts/src/share/org/apache/struts/action/RequestProcessor.java,v
1.45 2004/04/25 02:29:41 husted Exp $
* $Revision: 1.45 $
seems to translate a nullpointer into that
WARNING: Unhandled Exception thrown: class
java.lang.NullPointerException
javax.servlet.ServletException
at
org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:516)
at
org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:423)
at
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at
servletunit.struts.MockStrutsTestCase.actionPerform(MockStrutsTestCase.java:408)
at ...
also, it would be great to be a little bit more
informative if another exception is thrown (see
attached patch)
MockStrutsTestCase.java.patch with diff -u