Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoakim Erdfelt2013-08-05 16:13:32 +0000
committerJoakim Erdfelt2013-08-05 16:13:32 +0000
commit74991f90d6498aa8c170b768d843c010a1064b09 (patch)
tree102c91f7710dd4169112e79c782a115ce987e11d /jetty-servlets
parente2d872fcc74b002381a733e4089601b668639547 (diff)
downloadorg.eclipse.jetty.project-74991f90d6498aa8c170b768d843c010a1064b09.tar.gz
org.eclipse.jetty.project-74991f90d6498aa8c170b768d843c010a1064b09.tar.xz
org.eclipse.jetty.project-74991f90d6498aa8c170b768d843c010a1064b09.zip
Cleanup from merge
Diffstat (limited to 'jetty-servlets')
-rw-r--r--jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java
index 21bec2eb87..9098ea3bcf 100644
--- a/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java
+++ b/jetty-servlets/src/test/java/org/eclipse/jetty/servlets/MultipartFilterTest.java
@@ -738,8 +738,8 @@ public class MultipartFilterTest
{
String boundary="XyXyXy";
// generated and parsed test
- HttpTester request = new HttpTester();
- HttpTester response = new HttpTester();
+ HttpTester.Request request = HttpTester.newRequest();
+ HttpTester.Response response;
tester.addServlet(BoundaryServlet.class,"/testb");
tester.setAttribute("fileName", "abc");
tester.setAttribute("desc", "123");
@@ -761,7 +761,7 @@ public class MultipartFilterTest
}
request.setContent(baos.toString());
- response.parse(tester.getResponses(request.generate()));
+ response = HttpTester.parseResponse(tester.getResponses(request.generate()));
assertTrue(response.getContent().contains("Buffer size exceeded"));
assertEquals(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, response.getStatus());
}

Back to the top