struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Siman <aleksandr.si...@gmail.com>
Subject JUnit Plugin: Little refactoring
Date Fri, 18 Sep 2009 02:15:00 GMT

// From
    protected ActionMapping getActionMapping(String url) {
        MockHttpServletRequest req = new MockHttpServletRequest();
        req.setRequestURI(url);
        return
Dispatcher.getInstance().getContainer().getInstance(ActionMapper.class).getMapping(req,
                Dispatcher.getInstance().getConfigurationManager());
    }

// To
    protected ActionMapping getActionMapping(String url) {
        MockHttpServletRequest req = new MockHttpServletRequest();
        req.setRequestURI(url);
        return getActionMapping(req);
    }
-- 
View this message in context: http://www.nabble.com/JUnit-Plugin%3A-Little-refactoring-tp25502119p25502119.html
Sent from the Struts - Dev mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message