Return-Path: Delivered-To: apmail-struts-commits-archive@minotaur.apache.org Received: (qmail 84933 invoked from network); 18 Sep 2009 02:52:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Sep 2009 02:52:48 -0000 Received: (qmail 72973 invoked by uid 500); 18 Sep 2009 02:52:47 -0000 Delivered-To: apmail-struts-commits-archive@struts.apache.org Received: (qmail 72885 invoked by uid 500); 18 Sep 2009 02:52:47 -0000 Mailing-List: contact commits-help@struts.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@struts.apache.org Delivered-To: mailing list commits@struts.apache.org Received: (qmail 72876 invoked by uid 99); 18 Sep 2009 02:52:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 02:52:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2009 02:52:43 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E832923888D2; Fri, 18 Sep 2009 02:52:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r816445 - /struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java Date: Fri, 18 Sep 2009 02:52:22 -0000 To: commits@struts.apache.org From: musachy@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090918025222.E832923888D2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: musachy Date: Fri Sep 18 02:52:22 2009 New Revision: 816445 URL: http://svn.apache.org/viewvc?rev=816445&view=rev Log: reuse existing method. patch provided by Alex Siman Modified: struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java Modified: struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java URL: http://svn.apache.org/viewvc/struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java?rev=816445&r1=816444&r2=816445&view=diff ============================================================================== --- struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java (original) +++ struts/struts2/trunk/plugins/junit/src/main/java/org/apache/struts2/StrutsTestCase.java Fri Sep 18 02:52:22 2009 @@ -167,8 +167,7 @@ protected ActionMapping getActionMapping(String url) { MockHttpServletRequest req = new MockHttpServletRequest(); req.setRequestURI(url); - return Dispatcher.getInstance().getContainer().getInstance(ActionMapper.class).getMapping(req, - Dispatcher.getInstance().getConfigurationManager()); + return getActionMapping(req); } /**