From 8758e3c83411ffadc084d241217fc25f1fd31f42 Mon Sep 17 00:00:00 2001 From: Stanislav Ochotnicky Date: Thu, 14 Oct 2010 10:20:52 +0200 Subject: [PATCH] Fix test for servlet api 2.5 --- .../velocity/test/VelocityServletTestCase.java | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/src/test/org/apache/velocity/test/VelocityServletTestCase.java b/src/test/org/apache/velocity/test/VelocityServletTestCase.java index 824583e..ac0ab5c 100644 --- a/src/test/org/apache/velocity/test/VelocityServletTestCase.java +++ b/src/test/org/apache/velocity/test/VelocityServletTestCase.java @@ -16,7 +16,7 @@ package org.apache.velocity.test; * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations - * under the License. + * under the License. */ import java.io.IOException; @@ -149,6 +149,11 @@ public class VelocityServletTestCase extends TestCase return this; } + public String getContextPath() + { + return ""; + } + public String getServletContextName() { return "VelocityTestContext"; -- 1.7.2.3