struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From musa...@apache.org
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 GMT
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);
     }
 
     /**



Mime
View raw message