Hi I have just been playing around with the Strut Test Case.
junit.framework.AssertionFailedError: Error running action.perform(): class java.lang.NullPointerException - null void junit.framework.Assert.fail(java.lang.String) I am getting an null pointer for the call `performAction()' but I thought in Struts 1.1 the method is now "execute(). Am I wrong? junit.framework.AssertionFailedError: Error running action.perform(): class java.lang.NullPointerException - null void junit.framework.Assert.fail(java.lang.String) public void testValidate() { setRequestPathInfo("/TestValidateAction"); addRequestParameter("action", TestValidateAction.SUBMIT_ACTION); addRequestParameter("strBoolean","true"); addRequestParameter("strDouble","3.14159"); addRequestParameter("strShort","16384"); addRequestParameter("strDate","06-Jan-2003"); Date timenow = new Date(); SimpleDateFormat formatter1 = new SimpleDateFormat("dd-MMM-yyyy"); addRequestParameter("dataRecord.ageText","28"); actionPerform(); // <== DEATH HERE! verifyNoActionErrors(); verifyForward("success"); } Also which source zip matches which binary is it? I downloaded the `strutstest-196-src.zip' and then `strutstest196-1.0_2.2.zip' I could not see the correct source code `MockTestCase' when wanted to follow my JDeveloper IDE debugger. -- Peter Pilgrim, Struts/J2EE Consultant, RBoS FM, Risk IT Tel: +44 (0)207-375-4923 ******************************************************************** Visit our Internet site at http://www.rbsmarkets.com This e-mail is intended only for the addressee named above. As this e-mail may contain confidential or privileged information, if you are not the named addressee, you are not authorised to retain, read, copy or disseminate this message or any part of it. The Royal Bank of Scotland plc is registered in Scotland No 90312 Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB Regulated by the Financial Services Authority ******************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]