Author: henning
Date: Wed Sep  6 08:30:05 2006
New Revision: 440732

URL: http://svn.apache.org/viewvc?view=rev&rev=440732
Log:
add a few more tests for VELOCITY-456. 

Modified:
    
jakarta/velocity/engine/trunk/src/test/org/apache/velocity/test/UberspectorTestCase.java

Modified: 
jakarta/velocity/engine/trunk/src/test/org/apache/velocity/test/UberspectorTestCase.java
URL: 
http://svn.apache.org/viewvc/jakarta/velocity/engine/trunk/src/test/org/apache/velocity/test/UberspectorTestCase.java?view=diff&rev=440732&r1=440731&r2=440732
==============================================================================
--- 
jakarta/velocity/engine/trunk/src/test/org/apache/velocity/test/UberspectorTestCase.java
 (original)
+++ 
jakarta/velocity/engine/trunk/src/test/org/apache/velocity/test/UberspectorTestCase.java
 Wed Sep  6 08:30:05 2006
@@ -50,6 +50,19 @@
         ri.init();
     }
 
+    public void testNullObjects()
+            throws Exception
+    {
+        // How about some null objects... Gee, I'm mean. ;-) 
+        Uberspect u = ri.getUberspect();
+
+        VelPropertyGet getter = u.getPropertyGet(null, "foo", null);
+        assertNull(getter);
+
+        VelPropertySet setter = u.getPropertySet(null, "foo", Object.class, 
null);
+        assertNull(setter);
+    }
+
     public void testEmptyPropertyGetter()
             throws Exception
     {
@@ -60,7 +73,7 @@
 
         // Don't screw up on empty properties. That should map to get(Object)
         assertNotNull(getter);
-        assertEquals("Found wrong method", "get", getter.getMethodName());
+        assertEquals("Found wrong method", "get", getter. getMethodName());
     }
 
     public void testEmptyPropertySetter()



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to