Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2017-05-24 14:51:59 +0000
committerThomas Watson2017-05-24 14:52:55 +0000
commit0430d1aafb7733c7ffef0a4678bbc5ca88c2e21d (patch)
tree64f1eb4cdb7bd04b9bfbb7afcd5617d8434ecacc /bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java
parent30a0be239cbb30c7ec10345bcaa31470a86646a3 (diff)
downloadrt.equinox.bundles-0430d1aafb7733c7ffef0a4678bbc5ca88c2e21d.tar.gz
rt.equinox.bundles-0430d1aafb7733c7ffef0a4678bbc5ca88c2e21d.tar.xz
rt.equinox.bundles-0430d1aafb7733c7ffef0a4678bbc5ca88c2e21d.zip
HttpServletRequestWrapperImpl::getRequestUri()" This reverts commit 3eb1d9e3c39039085c5a6298eb6be6ae12c74760. Change-Id: I655087a9ea5beff49c3d6f3245d837f1481efee7 Signed-off-by: Thomas Watson <tjwatson@us.ibm.com>
Diffstat (limited to 'bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java')
-rw-r--r--bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java57
1 files changed, 0 insertions, 57 deletions
diff --git a/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java b/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java
index a3711f5c9..c9a9990d2 100644
--- a/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java
+++ b/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java
@@ -1576,61 +1576,4 @@ public class DispatchingTest extends BaseTest {
Assert.assertEquals(10, counter.get());
}
- @Test
- public void test_Bug497510_1() throws Exception {
- Servlet servlet = new HttpServlet() {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected void doGet(
- final HttpServletRequest req, final HttpServletResponse resp)
- throws ServletException, IOException {
-
- String requestURI = req.getRequestURI();
-
- Assert.assertNotNull(requestURI);
-
- PrintWriter writer = resp.getWriter();
- writer.write(requestURI);
- }
- };
-
- Dictionary<String, Object> props = new Hashtable<String, Object>();
- props.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_NAME, "Bug497510");
- props.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, "/Bug497510/*");
- registrations.add(getBundleContext().registerService(Servlet.class, servlet, props));
-
- String result = requestAdvisor.request("Bug497510/a%20b%20c");
-
- Assert.assertEquals("/Bug497510/a%20b%20c", result);
- }
-
- @Test
- public void test_Bug497510_2() throws Exception {
- Servlet servlet = new HttpServlet() {
- private static final long serialVersionUID = 1L;
-
- @Override
- protected void doGet(
- final HttpServletRequest req, final HttpServletResponse resp)
- throws ServletException, IOException {
-
- String requestURI = req.getRequestURI();
-
- Assert.assertNotNull(requestURI);
-
- PrintWriter writer = resp.getWriter();
- writer.write(requestURI);
- }
- };
-
- Dictionary<String, Object> props = new Hashtable<String, Object>();
- props.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_NAME, "Bug 497510");
- props.put(HttpWhiteboardConstants.HTTP_WHITEBOARD_SERVLET_PATTERN, "/Bug 497510/*");
- registrations.add(getBundleContext().registerService(Servlet.class, servlet, props));
-
- String result = requestAdvisor.request("Bug%20497510/a%20b%20c");
-
- Assert.assertEquals("/Bug%20497510/a%20b%20c", result);
- }
} \ No newline at end of file

Back to the top