public void testPrefixExtensionAction() throws ConfigException {
ControlModuleMapping mapping = new ControlModuleMapping("/test", ".do");
TestRequest request = new TestRequest();
request.setAttribute(INCLUDE_SERVLET_PATH, "/test/action.do");
request.removeAttribute(INCLUDE_PATH_INFO);
assertEquals("/action", mapping.getAction(request));
}
public void testPrefixExtensionPath() throws ConfigException {
ControlModuleMapping mapping = new ControlModuleMapping("/test", ".do");