Author: abelevich
Date: 2008-11-27 14:34:54 -0500 (Thu, 27 Nov 2008)
New Revision: 11420
Modified:
trunk/ui/dataTable/src/test/java/org/richfaces/component/AbstractColumnComponentTest.java
Log:
Reset ValueExpression before call setValue method
Modified:
trunk/ui/dataTable/src/test/java/org/richfaces/component/AbstractColumnComponentTest.java
===================================================================
---
trunk/ui/dataTable/src/test/java/org/richfaces/component/AbstractColumnComponentTest.java 2008-11-27
19:29:11 UTC (rev 11419)
+++
trunk/ui/dataTable/src/test/java/org/richfaces/component/AbstractColumnComponentTest.java 2008-11-27
19:34:54 UTC (rev 11420)
@@ -82,11 +82,19 @@
public void testSettersAndGetters() throws Exception {
column.setValueExpression("sortOrder", new
MockValueExpression(Ordering.ASCENDING));
assertEquals(Ordering.ASCENDING, column.getSortOrder());
+
+ // reset value expression
+ column.setValueExpression("sortOrder", null);
+
column.setSortOrder(Ordering.DESCENDING);
assertEquals(Ordering.DESCENDING, column.getSortOrder());
column.setValueExpression("filterValue", new MockValueExpression(null));
assertNull(column.getFilterValue());
+
+ // reset value expression
+ column.setValueExpression("filterValue", null);
+
column.setFilterValue("filterValue");
assertEquals("filterValue", column.getFilterValue());
}
Show replies by date