You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@velocity.apache.org by nb...@apache.org on 2008/08/18 23:09:46 UTC

svn commit: r686869 - in /velocity/engine/trunk/src/test/org/apache/velocity/test: IfNullTestCase.java PropertyMethodPrecedenceTestCase.java VarargMethodsTestCase.java

Author: nbubna
Date: Mon Aug 18 14:09:45 2008
New Revision: 686869

URL: http://svn.apache.org/viewvc?rev=686869&view=rev
Log:
fix wrong protection on overridden setContext

Modified:
    velocity/engine/trunk/src/test/org/apache/velocity/test/IfNullTestCase.java
    velocity/engine/trunk/src/test/org/apache/velocity/test/PropertyMethodPrecedenceTestCase.java
    velocity/engine/trunk/src/test/org/apache/velocity/test/VarargMethodsTestCase.java

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/IfNullTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/IfNullTestCase.java?rev=686869&r1=686868&r2=686869&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/IfNullTestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/IfNullTestCase.java Mon Aug 18 14:09:45 2008
@@ -31,7 +31,7 @@
         super(name);
     }
 
-    public void setContext(VelocityContext context)
+    protected void setContext(VelocityContext context)
     {
         context.put("nullToString", new NullToString());
         context.put("notnull", new Object());

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/PropertyMethodPrecedenceTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/PropertyMethodPrecedenceTestCase.java?rev=686869&r1=686868&r2=686869&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/PropertyMethodPrecedenceTestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/PropertyMethodPrecedenceTestCase.java Mon Aug 18 14:09:45 2008
@@ -31,7 +31,7 @@
         super(name);
     }
 
-    public void setContext(VelocityContext context)
+    protected void setContext(VelocityContext context)
     {
         context.put("geta", new getGetgetisTool());
         context.put("getA", new GetgetisTool());

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/VarargMethodsTestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/VarargMethodsTestCase.java?rev=686869&r1=686868&r2=686869&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/VarargMethodsTestCase.java (original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/VarargMethodsTestCase.java Mon Aug 18 14:09:45 2008
@@ -31,7 +31,7 @@
         super(name);
     }
 
-    public void setContext(VelocityContext context)
+    protected void setContext(VelocityContext context)
     {
         context.put("nice", new NiceTool());
         context.put("nasty", new NastyTool());