SWF-1386 Make tests independent of (the location of) Spring.js. That allows them to run inside an IDE without relying on the Ant build.

This commit is contained in:
Rossen Stoyanchev
2010-09-13 10:17:04 +00:00
parent cef35b6a45
commit 7986cbdb0e
3 changed files with 4 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ public class ResourceServletTests extends TestCase {
public final void testExecute() throws Exception {
String requestPath = "/spring/Spring.js";
String requestPath = "/org/springframework/js/resource/TestResource1.js";
request.setPathInfo(requestPath);
servlet.doGet(request, response);
@@ -41,10 +41,10 @@ public class ResourceServletTests extends TestCase {
public final void testExecute_CombinedResources() throws Exception {
String requestPath = "/spring/Spring.js";
String requestPath = "/org/springframework/js/resource/TestResource1.js";
request.setPathInfo(requestPath);
Map params = new HashMap();
params.put("appended", "/spring/Spring-Dojo.js");
params.put("appended", "/org/springframework/js/resource/TestResource2.js");
request.setParameters(params);
servlet.doGet(request, response);
@@ -53,7 +53,7 @@ public class ResourceServletTests extends TestCase {
public final void testExecute_CompressedResponse() throws Exception {
String requestPath = "/spring/Spring.js";
String requestPath = "/org/springframework/js/resource/TestResource1.js";
request.setPathInfo(requestPath);
request.addHeader("Accept-Encoding", "gzip");
servlet.doGet(request, response);