use of org.apache.struts.config.ActionConfig in project sonar-java by SonarSource.
the class TestTagUtils method testString_getActionMappingURL_String_String_PageContext_boolean4.
// use servlet mapping (path mapping)
public void testString_getActionMappingURL_String_String_PageContext_boolean4() {
pageContext.getServletContext().setAttribute(Globals.SERVLET_KEY, "/myapp/*");
ActionConfig actionConfig = new ActionConfig();
actionConfig.setParameter("/foo");
moduleConfig.addActionConfig(actionConfig);
request.setAttribute(Globals.MODULE_KEY, moduleConfig);
request.setPathElements("/mycontext", "/baz", null, null);
assertEquals("Check path /foo", tagutils.getActionMappingURL("/foo", pageContext), "/mycontext/myapp/foo");
}
Aggregations