Author: lfryc(a)redhat.com
Date: 2010-07-21 08:13:19 -0400 (Wed, 21 Jul 2010)
New Revision: 18168
Modified:
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jOutputPanel/TestA4JOutputPanel.java
Log:
@SupressWarnings("unused") on DataProviders and removed method testFireEvent()
which had moved to AbstractMetamerTest
Modified:
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java
===================================================================
---
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java 2010-07-21
12:12:33 UTC (rev 18167)
+++
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jCommandLink/TestA4JCommandLink.java 2010-07-21
12:13:19 UTC (rev 18168)
@@ -318,19 +318,4 @@
assertEquals(selenium.getText(link), value, "Value of the button did not
change");
}
-
- private void testFireEvent(Event event) {
- ElementLocator eventInput = pjq("input[id$=on" + event.getEventName() +
"Input]");
- final String value = "alert('" + event.getEventName() +
"')";
-
- selenium.type(eventInput, value);
- selenium.fireEvent(eventInput, Event.BLUR);
- selenium.waitForPageToLoad(TIMEOUT);
-
- selenium.fireEvent(link, event);
-
- assertEquals(selenium.getAlert(), event.getEventName(), event.getEventName()
- + " attribute did not change correctly");
- }
-
}
Modified:
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jOutputPanel/TestA4JOutputPanel.java
===================================================================
---
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jOutputPanel/TestA4JOutputPanel.java 2010-07-21
12:12:33 UTC (rev 18167)
+++
root/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/a4jOutputPanel/TestA4JOutputPanel.java 2010-07-21
12:13:19 UTC (rev 18168)
@@ -71,7 +71,8 @@
* plain template) if nothing is defined, JavaScript events that are defined
for output panel and layout of
* panel (block or inline)
*/
- @DataProvider(name = "templatesEventsLayouts")
+ @SuppressWarnings("unused")
+ @DataProvider(name = "templatesEventsLayouts")
private Object[][] getTemplatesEventsLayouts() {
final int layoutsCount = 2;
// list of templates, e.g. {{"plain"},
{"richDataTable1,redDiv"}}
Show replies by date