Author: vmolotkov
Date: 2008-10-28 04:11:21 -0400 (Tue, 28 Oct 2008)
New Revision: 10936
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
Log:
tests for a4j:support component
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java
===================================================================
---
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2008-10-28
05:38:57 UTC (rev 10935)
+++
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/AjaxSupportTest.java 2008-10-28
08:11:21 UTC (rev 10936)
@@ -72,96 +72,96 @@
private String dataId2;
-// /**
-// * action and actionListener defined as component attributes and actionListener
-// * defined as nested tag are invoked on the server after event of attached
-// * to component occurs, navigation occurs
-// */
-// @Test
-// public void testDefaultBehaviour(Template template) {
-// setTestUrl(DEFAULT_BEHAVIOUR_PAGE);
-// init(template);
-// passExternalValidation();
-// checkBasicFunctionality(template, DEFAULT_BEHAVIOUR_ID_PREFIX, true);
-// }
-//
-// /** component re-renders another component (h:outputText) */
-// @Test
-// public void testRerenderFunctionality(Template template) {
-// setTestUrl(RERENDER_ATTRIBUTE_PAGE);
-// init(template);
-// passExternalValidation();
-// checkBasicFunctionality(template, RERENDER_ATTRIBUTE_ID_PREFIX, true);
-// }
-//
-// /**
-// * @see #testDefaultBehaviour(Template template)
-// *
-// * the same for the case of external validation
-// * failure - listeners and navigation do not work
-// */
-// @Test
-// public void testValidationFailed(Template template) {
-// setTestUrl(VALIDATION_FAILED_PAGE);
-// init(template);
-// breakExternalValidation();
-// checkBasicFunctionality(template, VALIDATION_FAILED_ID_PREFIX, false);
-// }
-//
-// /**
-// * @see #testDefaultBehaviour(Template template)
-// *
-// * the same for immediate = true component
-// */
-// @Test
-// public void testImmediateAttribute1(Template template) {
-// setTestUrl(IMMEDIATE_ATTRIBUTE1_PAGE);
-// init(template);
-// passExternalValidation();
-// checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE1_ID_PREFIX, true);
-// }
-//
-// /**
-// * @see #testDefaultBehaviour(Template template)
-// *
-// * the same for immediate = true component for
-// * the case of external validation failure
-// */
-// @Test
-// public void testImmediateAttribute2(Template template) {
-// setTestUrl(IMMEDIATE_ATTRIBUTE2_PAGE);
-// init(template);
-// breakExternalValidation();
-// checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE2_ID_PREFIX, true);
-// }
-//
-// /**
-// * @see #testDefaultBehaviour()
-// *
-// * the same for ajaxSingle = true component
-// */
-// @Test
-// public void testAjaxSingleAttribute1(Template template) {
-// setTestUrl(AJAXSINGLE_ATTRIBUTE1_PAGE);
-// init(template);
-// passExternalValidation();
-// checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE1_ID_PREFIX, true);
-// }
-//
-// /**
-// * @see #testDefaultBehaviour()
-// *
-// * the same for ajaxSingle = true component for the case
-// * of external validation failure
-// */
-// @Test
-// public void testAjaxSingleAttribute2(Template template) {
-// setTestUrl(AJAXSINGLE_ATTRIBUTE2_PAGE);
-// init(template);
-// breakExternalValidation();
-// checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE2_ID_PREFIX, true);
-// }
+ /**
+ * action and actionListener defined as component attributes and actionListener
+ * defined as nested tag are invoked on the server after event of attached
+ * to component occurs, navigation occurs
+ */
+ @Test
+ public void testDefaultBehaviour(Template template) {
+ setTestUrl(DEFAULT_BEHAVIOUR_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, DEFAULT_BEHAVIOUR_ID_PREFIX, true);
+ }
+ /** component re-renders another component (h:outputText) */
+ @Test
+ public void testRerenderFunctionality(Template template) {
+ setTestUrl(RERENDER_ATTRIBUTE_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, RERENDER_ATTRIBUTE_ID_PREFIX, true);
+ }
+
+ /**
+ * @see #testDefaultBehaviour(Template template)
+ *
+ * the same for the case of external validation
+ * failure - listeners and navigation do not work
+ */
+ @Test
+ public void testValidationFailed(Template template) {
+ setTestUrl(VALIDATION_FAILED_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, VALIDATION_FAILED_ID_PREFIX, false);
+ }
+
+ /**
+ * @see #testDefaultBehaviour(Template template)
+ *
+ * the same for immediate = true component
+ */
+ @Test
+ public void testImmediateAttribute1(Template template) {
+ setTestUrl(IMMEDIATE_ATTRIBUTE1_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE1_ID_PREFIX, true);
+ }
+
+ /**
+ * @see #testDefaultBehaviour(Template template)
+ *
+ * the same for immediate = true component for
+ * the case of external validation failure
+ */
+ @Test
+ public void testImmediateAttribute2(Template template) {
+ setTestUrl(IMMEDIATE_ATTRIBUTE2_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, IMMEDIATE_ATTRIBUTE2_ID_PREFIX, true);
+ }
+
+ /**
+ * @see #testDefaultBehaviour()
+ *
+ * the same for ajaxSingle = true component
+ */
+ @Test
+ public void testAjaxSingleAttribute1(Template template) {
+ setTestUrl(AJAXSINGLE_ATTRIBUTE1_PAGE);
+ init(template);
+ passExternalValidation();
+ checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE1_ID_PREFIX, true);
+ }
+
+ /**
+ * @see #testDefaultBehaviour()
+ *
+ * the same for ajaxSingle = true component for the case
+ * of external validation failure
+ */
+ @Test
+ public void testAjaxSingleAttribute2(Template template) {
+ setTestUrl(AJAXSINGLE_ATTRIBUTE2_PAGE);
+ init(template);
+ breakExternalValidation();
+ checkBasicFunctionality(template, AJAXSINGLE_ATTRIBUTE2_ID_PREFIX, true);
+ }
+
// /**
// * component encodes nested f:param tags and their values are present as request
parameters
// */
Show replies by date