Author: jjamrich
Date: 2011-08-17 19:40:45 -0400 (Wed, 17 Aug 2011)
New Revision: 22648
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/RichPickListComponentAttribute.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java
Log:
RFPL-1612: add rendered attribute tests for pickList
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/RichPickListComponentAttribute.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/RichPickListComponentAttribute.java 2011-08-17
23:40:24 UTC (rev 22647)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/RichPickListComponentAttribute.java 2011-08-17
23:40:45 UTC (rev 22648)
@@ -276,7 +276,7 @@
setProperty("removeText", removeText);
}
- public void setRendered(String rendered) {
+ public void setRendered(Boolean rendered) {
setProperty("rendered", rendered);
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java 2011-08-17
23:40:24 UTC (rev 22647)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richPickList/TestPickList.java 2011-08-17
23:40:45 UTC (rev 22648)
@@ -460,9 +460,10 @@
// attributes.setRemoveText(removeText);
}
- // @Test
+ @Test
public void testRendered() {
- // attributes.setRendered(rendered);
+ attributes.setRendered(Boolean.FALSE);
+ assertFalse(selenium.isElementPresent(pickListTop));
}
@Test
Show replies by date