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/21 00:26:42 UTC

svn commit: r687491 - /velocity/engine/trunk/src/test/org/apache/velocity/test/issues/Velocity579TestCase.java

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
+    {
+    }
+
 }