[stapler] 06/07: servlet25-compat
James Downing Page
jamespage at alioth.debian.org
Mon Aug 12 08:53:52 UTC 2013
This is an automated email from the git hooks/post-receive script.
jamespage pushed a commit to branch patch-queue/master
in repository stapler.
commit 47112ebb969c6836fd31cf99d43bddc631cc0553
Author: Debian Java Maintainers <pkg-java-maintainers at lists.alioth.debian.org>
Date: Mon Aug 12 09:43:30 2013 +0100
servlet25-compat
---
.../test/java/org/kohsuke/stapler/MockRequest.java | 20 ++++++++++++++++++++
.../org/kohsuke/stapler/MockServletContext.java | 4 ++++
2 files changed, 24 insertions(+)
diff --git a/core/src/test/java/org/kohsuke/stapler/MockRequest.java b/core/src/test/java/org/kohsuke/stapler/MockRequest.java
index d8a9436..5a80c83 100644
--- a/core/src/test/java/org/kohsuke/stapler/MockRequest.java
+++ b/core/src/test/java/org/kohsuke/stapler/MockRequest.java
@@ -267,4 +267,24 @@ public class MockRequest implements HttpServletRequest {
// 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();
+ }
}
diff --git a/core/src/test/java/org/kohsuke/stapler/MockServletContext.java b/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
index e759ab1..4c6663b 100644
--- a/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
+++ b/core/src/test/java/org/kohsuke/stapler/MockServletContext.java
@@ -105,4 +105,8 @@ public class MockServletContext implements ServletContext {
public String getServletContextName() {
return null;
}
+
+ public String getContextPath() {
+ return null;
+ }
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/stapler.git
More information about the pkg-java-commits
mailing list