Return-Path: list-help: list-unsubscribe: List-Post: List-Id: Mailing-List: contact cactus-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list cactus-user@jakarta.apache.org Received: (qmail 90879 invoked from network); 3 Jan 2004 02:04:14 -0000 Received: from unknown (HELO dydimus.dreamhost.com) (66.33.197.17) by daedalus.apache.org with SMTP; 3 Jan 2004 02:04:14 -0000 Received: from [15.253.27.118] (bristle.dhcp.cv.hp.com [15.253.27.118]) by dydimus.dreamhost.com (Postfix) with ESMTP id 871AE4F88E for ; Fri, 2 Jan 2004 18:04:18 -0800 (PST) Subject: maven plugin help From: Keith Irwin Reply-To: keith@keithirwin.com To: Cactus Users List Content-Type: text/plain Message-Id: <1073095395.5029.84.camel@bristle.dhcp.cv.hp.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Fri, 02 Jan 2004 18:03:15 -0800 Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Folks-- I'm using maven and can't seem to test my struts actions with struts test case. Figured I'd bypass it and just use ServletTestCase instead but keep getting a nullpointer exception. public void beginTest(WebRequest request) { request.setURL("localhost:8080", "/public", "/home.do", null, null); } public void testTest() { WPAActionServlet servlet = new WPAActionServlet(); try { servlet.config(); servlet.service(request, response); } catch (Exception e) { "...." } } I get a NullPointerException every time. (WPAActionServlet is an extension of the ActionServlet). Is testing Struts actions with ServletTestCase a bit less trivial than the above suggests? (The WPAActionServlet seems to work in that I can tell from logs that it's loading all its plugins.) Keith