-Moving AjaxHandler to spring-js
-Polishing Spring.js API -Refactoring spring-faces components to match Spring.js API changes.
This commit is contained in:
@@ -8,7 +8,6 @@ import javax.servlet.ServletContext;
|
||||
|
||||
import junit.framework.TestCase;
|
||||
|
||||
import org.springframework.js.resource.ResourceServlet;
|
||||
import org.springframework.mock.web.MockHttpServletRequest;
|
||||
import org.springframework.mock.web.MockHttpServletResponse;
|
||||
import org.springframework.mock.web.MockServletConfig;
|
||||
@@ -60,6 +59,14 @@ public class ResourceServletTests extends TestCase {
|
||||
assertEquals(404, response.getStatus());
|
||||
}
|
||||
|
||||
public final void testExecute_ProtectedPath() throws Exception {
|
||||
String requestPath = "/WEB-INF/web.xml";
|
||||
request.setPathInfo(requestPath);
|
||||
servlet.doGet(request, response);
|
||||
|
||||
assertEquals(404, response.getStatus());
|
||||
}
|
||||
|
||||
private class ResourceTestMockServletContext extends MockServletContext {
|
||||
|
||||
public String getMimeType(String filePath) {
|
||||
|
||||
Reference in New Issue
Block a user