1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
Description: Compatiblity Patch for Servlet 2.5 Specification
Author: James Page <james.page@ubuntu.com>
Forwarded: not-needed
Index: stapler-1.152/core/src/test/java/org/kohsuke/stapler/MockRequest.java
===================================================================
--- stapler-1.152.orig/core/src/test/java/org/kohsuke/stapler/MockRequest.java 2010-11-16 09:59:49.966017999 +0000
+++ stapler-1.152/core/src/test/java/org/kohsuke/stapler/MockRequest.java 2010-11-18 14:56:25.948474660 +0000
@@ -267,4 +267,24 @@
// TODO
throw new UnsupportedOperationException();
}
+
+ public int getRemotePort() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ public int getLocalPort() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ public String getLocalAddr() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
+
+ public String getLocalName() {
+ // TODO
+ throw new UnsupportedOperationException();
+ }
}
Index: stapler-1.152/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
===================================================================
--- stapler-1.152.orig/core/src/test/java/org/kohsuke/stapler/MockServletContext.java 2010-11-18 14:56:41.918474662 +0000
+++ stapler-1.152/core/src/test/java/org/kohsuke/stapler/MockServletContext.java 2010-11-18 14:58:24.728474659 +0000
@@ -105,4 +105,8 @@
public String getServletContextName() {
return null;
}
+
+ public String getContextPath() {
+ return null;
+ }
}
|