[richfaces-svn-commits] JBoss Rich Faces SVN: r12149 - in trunk/test-applications/seleniumTest/richfaces/src: test/java/org/richfaces/testng and 1 other directory.
richfaces-svn-commits at lists.jboss.org
richfaces-svn-commits at lists.jboss.org
Thu Jan 8 05:55:18 EST 2009
Author: andrei_exadel
Date: 2009-01-08 05:55:18 -0500 (Thu, 08 Jan 2009)
New Revision: 12149
Added:
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/actionParam/autoTestActionParam.xhtml
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxActionParameterTest.java
Log:
RF-5537
Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/actionParam/autoTestActionParam.xhtml
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/actionParam/autoTestActionParam.xhtml (rev 0)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/actionParam/autoTestActionParam.xhtml 2009-01-08 10:55:18 UTC (rev 12149)
@@ -0,0 +1,16 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:a4j="http://richfaces.org/a4j"
+ xmlns:rich="http://richfaces.org/rich"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets">
+
+<ui:composition template="#{templateBean.autoTestTemplate}">
+ <ui:define name="component">
+ <h:commandButton id="submit" value="Submit">
+ <a4j:actionparam name="param" value="param" assignTo="#{autoTestBean.value}" actionListener="#{autoTestBean.actionListener}" />
+ </h:commandButton>
+ </ui:define>
+</ui:composition>
+</html>
\ No newline at end of file
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxActionParameterTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxActionParameterTest.java 2009-01-08 09:19:42 UTC (rev 12148)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxActionParameterTest.java 2009-01-08 10:55:18 UTC (rev 12149)
@@ -22,6 +22,7 @@
import org.ajax4jsf.bean.A4JActionParam;
import org.ajax4jsf.template.Template;
+import org.richfaces.AutoTester;
import org.richfaces.SeleniumTestBase;
import org.testng.Assert;
import org.testng.annotations.Test;
@@ -32,7 +33,17 @@
static final String TEST_CONVERTER_FOR_PROPER_JAVA_TYPE = "/pages/actionParam/testConverterForProperJavaType.xhtml";
+
@Test
+ public void testActionListenerInCaseOfExternalValidationFailure(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, null);
+
+ tester.testActionListener();
+
+ }
+
+ @Test
public void testConverterAttribute(Template template) {
renderPage(TEST_CONVERTER_ATTRIBUTE, template, null);
testConverter(getParentId());
@@ -126,6 +137,17 @@
AssertTextNotEquals(paramValueId, text, "Value should be changed after each submit");
}
+
+ @Override
+ public void sendAjax() {
+ String id = getParentId() + "autoTestForm:submit";
+ clickCommandAndWait(id);
+ }
+
+ @Override
+ public String getAutoTestUrl() {
+ return "/pages/actionParam/autoTestActionParam.xhtml";
+ }
@Override
public String getTestUrl() {
More information about the richfaces-svn-commits
mailing list