Commits

jkuh...@d4b077e3-5828-0410-b394-cb2b42183085  committed 8c2b5af

Added specific test for OGNL-129. Appears to be working correctly already.

  • Participants
  • Parent commits 8509b66

Comments (0)

Files changed (2)

File src/test/java/org/ognl/test/PropertyTest.java

             { ROOT, "openTransitionWin", Boolean.FALSE},
             { ROOT, "b.methodOfB(a.methodOfA(b)-1)", new Integer(0)},
             { ROOT, "disabled", Boolean.TRUE},
-            { PROPERTY, "value", ""}
+            { PROPERTY, "value", ""},
+            { PROPERTY, "search", "foo" }
     };
 
     public static String formatValue(int millis, boolean b1, boolean b2)

File src/test/java/org/ognl/test/objects/PropertyHolder.java

 public class PropertyHolder {
 
     String _value = "";
+    String _search = "foo";
 
     public String getValue()
     {
     {
         return _value != null && _value.length() > 0;
     }
+
+    public void setSearch(String value)
+    {
+        _search = value;
+    }
+
+    public String getSearch()
+    {
+        return _search;
+    }
+
+    public void search()
+    {
+    }
 }