velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r687491 - /velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java
Date Wed, 20 Aug 2008 22:26:42 GMT
Author: nbubna
Date: Wed Aug 20 15:26:41 2008
New Revision: 687491

URL: http://svn.apache.org/viewvc?rev=687491&view=rev
Log:
VELOCITY-70 add some tests for this

Modified:
    velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java

Modified: velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java
URL: http://svn.apache.org/viewvc/velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java?rev=687491&r1=687490&r2=687491&view=diff
==============================================================================
--- velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java
(original)
+++ velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java
Wed Aug 20 15:26:41 2008
@@ -22,7 +22,8 @@
 import org.apache.velocity.test.BaseEvalTestCase;
 
 /**
- * This class tests VELOCITY-579.
+ * This class tests VELOCITY-579 and with some related stuff
+ * from VELOCITY-70 thrown in.
  */
 public class Velocity579TestCase extends BaseEvalTestCase
 {
@@ -38,6 +39,12 @@
         assertEvalEquals("$foo.bar()", "$foo.bar()");
     }
 
+    public void testPublicMethodInheritedFromPrivateClass()
+    {
+        context.put("bar", new MyBar());
+        assertEvalEquals("bar", "$bar.bar()");
+    }
+
     public static interface Foo
     {
         String foo(String s);
@@ -59,4 +66,8 @@
         }
     }
 
+    public static class MyBar extends Foobar
+    {
+    }
+
 }



Mime
View raw message