Author: jjamrich
Date: 2011-05-05 17:14:05 -0400 (Thu, 05 May 2011)
New Revision: 22474
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/AbstractRichMessageTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/RichMessageTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageCSV.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSFValidator.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSR303.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/RichMessagesTest.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesCSV.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSFValidator.java
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSR303.java
Log:
Move all @Test annotated methods to ancestor classes.
Test methods in abstract classes causes problems when run suite.
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/AbstractRichMessageTest.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/AbstractRichMessageTest.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/AbstractRichMessageTest.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -37,7 +37,6 @@
import org.richfaces.tests.metamer.ftest.AbstractMetamerTest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
-import org.testng.annotations.Test;
/**
* Common test case for rich:message component
@@ -177,7 +176,6 @@
* ajaxRendered attribute change behavior: messages are displayed
* after action performed by a4j:button (not only by h:command*)
*/
- @Test
public void testAjaxRendered(){
// with set to false, element with id$=simpleInputMsg shouldn't appear
@@ -194,7 +192,6 @@
/**
* This attribute could disable displaying message
*/
- @Test
public void testRendered(){
// with set to false, element with id$=simpleInputMsg shouldn't appear
@@ -211,7 +208,6 @@
/**
* Attribute for managing display Summary
*/
- @Test
public void testShowSummary() {
// span with class=rf-msg-sum should appear when set to true
@@ -227,7 +223,6 @@
/**
* Attribute for managing display Detail
*/
- @Test
public void testShowDetail() {
// span with class=rf-msg-det should appear when set to true
@@ -240,78 +235,63 @@
waitGui.until(isNotDisplayed.locator(getDetailElemLocator()));
}
- @Test
public void testTitle() {
testHtmlAttribute(getTestElemLocator(), RichMessageAttributes.TITLE, "Title
test");
}
- @Test
public void testDir(){
testHtmlAttribute(getTestElemLocator(), RichMessageAttributes.DIR,
"rtl");
}
- @Test
public void testLang(){
testHtmlAttribute(getTestElemLocator(), RichMessageAttributes.LANG,
"US.en");
}
- @Test
public void testStyle(){
testHtmlAttribute(getTestElemLocator(), RichMessageAttributes.STYLE, "color:
blue;");
}
- @Test
public void testStyleClass() {
// attribute styleClass is propagated as class attribute in target HTML element
testStyleClass(getTestElemLocator(),
RichMessageAttributes.STYLE_CLASS.toString());
}
- @Test
public void testOnClick() {
testFireEvent(Event.CLICK, getTestElemLocator());
}
- @Test
public void testOnDblClick() {
testFireEvent(Event.DBLCLICK, getTestElemLocator());
}
- @Test
public void testOnKeyDown() {
testFireEvent(Event.KEYDOWN, getTestElemLocator());
}
- @Test
public void testOnKeyPress() {
testFireEvent(Event.KEYPRESS, getTestElemLocator());
}
- @Test
public void testOnKeyUp() {
testFireEvent(Event.KEYUP, getTestElemLocator());
}
- @Test
public void testOnMouseDown() {
testFireEvent(Event.MOUSEDOWN, getTestElemLocator());
}
- @Test
public void testOnMouseMove() {
testFireEvent(Event.MOUSEMOVE, getTestElemLocator());
}
- @Test
public void testOnMouseOut() {
testFireEvent(Event.MOUSEOUT, getTestElemLocator());
}
- @Test
public void testOnMouseOver() {
testFireEvent(Event.MOUSEOVER, getTestElemLocator());
}
- @Test
public void testOnMouseUp() {
testFireEvent(Event.MOUSEUP, getTestElemLocator());
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/RichMessageTest.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/RichMessageTest.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/RichMessageTest.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -24,7 +24,6 @@
import static org.jboss.test.selenium.locator.LocatorFactory.jq;
import org.jboss.test.selenium.locator.JQueryLocator;
-import org.testng.annotations.Test;
/**
@@ -45,7 +44,6 @@
* Attribute 'for' change behavior: only messages bound to element with
* id specified in 'for' should be displayed
*/
- @Test
public void testFor() {
// firstly, remove value from attribute for and generate message
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageCSV.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageCSV.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageCSV.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -25,7 +25,9 @@
import java.net.URL;
+import org.jboss.test.selenium.dom.Event;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.testng.annotations.Test;
/**
* Test case for page /faces/components/richMessage/csv.xhtml
@@ -55,4 +57,105 @@
return detail;
}
+ // list of called test methods
+
+ @Test
+ public void testFor(){
+ super.testFor();
+ }
+
+ @Test
+ public void testAjaxRendered() {
+ super.testAjaxRendered();
+ }
+
+ @Test
+ public void testRendered() {
+ super.testRendered();
+ }
+
+ @Test
+ public void testShowSummary(){
+ super.testShowSummary();
+ }
+
+ @Test
+ public void testShowDetail(){
+ super.testShowDetail();
+ }
+
+ @Test
+ public void testTitle(){
+ super.testTitle();
+ }
+
+ @Test
+ public void testDir(){
+ super.testDir();
+ }
+
+ @Test
+ public void testLang(){
+ super.testLang();
+ }
+
+ @Test
+ public void testStyle(){
+ super.testStyle();
+ }
+
+ @Test
+ public void testStyleClass(){
+ super.testStyleClass();
+ }
+
+ @Test
+ public void testOnClick() {
+ super.testOnClick();
+ }
+
+ @Test
+ public void testOnDblClick() {
+ super.testOnDblClick();
+ }
+
+ @Test
+ public void testOnKeyDown() {
+ super.testOnKeyDown();
+ }
+
+ @Test
+ public void testOnKeyPress() {
+ super.testOnKeyPress();
+ }
+
+ @Test
+ public void testOnKeyUp() {
+ super.testOnKeyUp();
+ }
+
+ @Test
+ public void testOnMouseDown() {
+ super.testOnMouseDown();
+ }
+
+ @Test
+ public void testOnMouseMove() {
+ super.testOnMouseMove();
+ }
+
+ @Test
+ public void testOnMouseOut() {
+ super.testOnMouseOut();
+ }
+
+ @Test
+ public void testOnMouseOver() {
+ super.testOnMouseOver();
+ }
+
+ @Test
+ public void testOnMouseUp() {
+ super.testOnMouseUp();
+ }
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSFValidator.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSFValidator.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSFValidator.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.testng.annotations.Test;
/**
* Test case for page /faces/components/richMessage/jsfValidator.xhtml
@@ -57,5 +58,107 @@
public JQueryLocator getDetailElemLocator() {
return detail;
}
+
+ // list of called test methods
+
+ @Test
+ public void testFor(){
+ super.testFor();
+ }
+
+ @Test
+ public void testAjaxRendered() {
+ super.testAjaxRendered();
+ }
+
+ @Test
+ public void testRendered() {
+ super.testRendered();
+ }
+
+ @Test
+ public void testShowSummary(){
+ super.testShowSummary();
+ }
+
+ @Test
+ public void testShowDetail(){
+ super.testShowDetail();
+ }
+
+ @Test
+ public void testTitle(){
+ super.testTitle();
+ }
+
+ @Test
+ public void testDir(){
+ super.testDir();
+ }
+
+ @Test
+ public void testLang(){
+ super.testLang();
+ }
+
+ @Test
+ public void testStyle(){
+ super.testStyle();
+ }
+
+ @Test
+ public void testStyleClass(){
+ super.testStyleClass();
+ }
+
+ @Test
+ public void testOnClick() {
+ super.testOnClick();
+ }
+
+ @Test
+ public void testOnDblClick() {
+ super.testOnDblClick();
+ }
+
+ @Test
+ public void testOnKeyDown() {
+ super.testOnKeyDown();
+ }
+
+ @Test
+ public void testOnKeyPress() {
+ super.testOnKeyPress();
+ }
+
+ @Test
+ public void testOnKeyUp() {
+ super.testOnKeyUp();
+ }
+
+ @Test
+ public void testOnMouseDown() {
+ super.testOnMouseDown();
+ }
+
+ @Test
+ public void testOnMouseMove() {
+ super.testOnMouseMove();
+ }
+
+ @Test
+ public void testOnMouseOut() {
+ super.testOnMouseOut();
+ }
+
+ @Test
+ public void testOnMouseOver() {
+ super.testOnMouseOver();
+ }
+
+ @Test
+ public void testOnMouseUp() {
+ super.testOnMouseUp();
+ }
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSR303.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSR303.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessage/TestRichMessageJSR303.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.testng.annotations.Test;
/**
* Test case for page /faces/components/richMessage/jsr303.xhtml
@@ -57,5 +58,107 @@
public JQueryLocator getDetailElemLocator() {
return detail;
}
+
+ // list of called test methods
+
+ @Test
+ public void testFor(){
+ super.testFor();
+ }
+
+ @Test
+ public void testAjaxRendered() {
+ super.testAjaxRendered();
+ }
+
+ @Test
+ public void testRendered() {
+ super.testRendered();
+ }
+
+ @Test
+ public void testShowSummary(){
+ super.testShowSummary();
+ }
+
+ @Test
+ public void testShowDetail(){
+ super.testShowDetail();
+ }
+
+ @Test
+ public void testTitle(){
+ super.testTitle();
+ }
+
+ @Test
+ public void testDir(){
+ super.testDir();
+ }
+
+ @Test
+ public void testLang(){
+ super.testLang();
+ }
+
+ @Test
+ public void testStyle(){
+ super.testStyle();
+ }
+
+ @Test
+ public void testStyleClass(){
+ super.testStyleClass();
+ }
+
+ @Test
+ public void testOnClick() {
+ super.testOnClick();
+ }
+
+ @Test
+ public void testOnDblClick() {
+ super.testOnDblClick();
+ }
+
+ @Test
+ public void testOnKeyDown() {
+ super.testOnKeyDown();
+ }
+
+ @Test
+ public void testOnKeyPress() {
+ super.testOnKeyPress();
+ }
+
+ @Test
+ public void testOnKeyUp() {
+ super.testOnKeyUp();
+ }
+
+ @Test
+ public void testOnMouseDown() {
+ super.testOnMouseDown();
+ }
+
+ @Test
+ public void testOnMouseMove() {
+ super.testOnMouseMove();
+ }
+
+ @Test
+ public void testOnMouseOut() {
+ super.testOnMouseOut();
+ }
+
+ @Test
+ public void testOnMouseOver() {
+ super.testOnMouseOver();
+ }
+
+ @Test
+ public void testOnMouseUp() {
+ super.testOnMouseUp();
+ }
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/RichMessagesTest.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/RichMessagesTest.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/RichMessagesTest.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -64,7 +64,6 @@
* Attribute 'for' change behavior: only messages bound to element with
* id specified in 'for' should be displayed
*/
- @Test
public void testFor() {
// firstly reset to null
@@ -107,7 +106,6 @@
* (with label "Messages2 - without 'for' but 'globalOnly'
attribute instead")
* This is the reason why used "mainMsg2" instead of getTestElemLocator()
*/
- @Test
public void testGlobalOnly() {
// firstly set for attribute to null
attributes.setFor("");
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesCSV.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesCSV.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesCSV.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.testng.annotations.Test;
/**
* Test case for page /faces/components/richMessages/csv.xhtml
@@ -55,4 +56,111 @@
return detail;
}
+ // list of called test methods
+
+ @Test
+ public void testFor(){
+ super.testFor();
+ }
+
+ @Test
+ public void testGlobalOnly(){
+ super.testGlobalOnly();
+ }
+
+ @Test
+ public void testAjaxRendered() {
+ super.testAjaxRendered();
+ }
+
+ @Test
+ public void testRendered() {
+ super.testRendered();
+ }
+
+ @Test
+ public void testShowSummary(){
+ super.testShowSummary();
+ }
+
+ @Test
+ public void testShowDetail(){
+ super.testShowDetail();
+ }
+
+ @Test
+ public void testTitle(){
+ super.testTitle();
+ }
+
+ @Test
+ public void testDir(){
+ super.testDir();
+ }
+
+ @Test
+ public void testLang(){
+ super.testLang();
+ }
+
+ @Test
+ public void testStyle(){
+ super.testStyle();
+ }
+
+ @Test
+ public void testStyleClass(){
+ super.testStyleClass();
+ }
+
+ @Test
+ public void testOnClick() {
+ super.testOnClick();
+ }
+
+ @Test
+ public void testOnDblClick() {
+ super.testOnDblClick();
+ }
+
+ @Test
+ public void testOnKeyDown() {
+ super.testOnKeyDown();
+ }
+
+ @Test
+ public void testOnKeyPress() {
+ super.testOnKeyPress();
+ }
+
+ @Test
+ public void testOnKeyUp() {
+ super.testOnKeyUp();
+ }
+
+ @Test
+ public void testOnMouseDown() {
+ super.testOnMouseDown();
+ }
+
+ @Test
+ public void testOnMouseMove() {
+ super.testOnMouseMove();
+ }
+
+ @Test
+ public void testOnMouseOut() {
+ super.testOnMouseOut();
+ }
+
+ @Test
+ public void testOnMouseOver() {
+ super.testOnMouseOver();
+ }
+
+ @Test
+ public void testOnMouseUp() {
+ super.testOnMouseUp();
+ }
+
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSFValidator.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSFValidator.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSFValidator.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.testng.annotations.Test;
/**
* Test case for page /faces/components/richMessages/jsfValidator.xhtml
@@ -55,4 +56,111 @@
return detail;
}
+ // list of called test methods
+
+ @Test
+ public void testFor(){
+ super.testFor();
+ }
+
+ @Test
+ public void testGlobalOnly(){
+ super.testGlobalOnly();
+ }
+
+ @Test
+ public void testAjaxRendered() {
+ super.testAjaxRendered();
+ }
+
+ @Test
+ public void testRendered() {
+ super.testRendered();
+ }
+
+ @Test
+ public void testShowSummary(){
+ super.testShowSummary();
+ }
+
+ @Test
+ public void testShowDetail(){
+ super.testShowDetail();
+ }
+
+ @Test
+ public void testTitle(){
+ super.testTitle();
+ }
+
+ @Test
+ public void testDir(){
+ super.testDir();
+ }
+
+ @Test
+ public void testLang(){
+ super.testLang();
+ }
+
+ @Test
+ public void testStyle(){
+ super.testStyle();
+ }
+
+ @Test
+ public void testStyleClass(){
+ super.testStyleClass();
+ }
+
+ @Test
+ public void testOnClick() {
+ super.testOnClick();
+ }
+
+ @Test
+ public void testOnDblClick() {
+ super.testOnDblClick();
+ }
+
+ @Test
+ public void testOnKeyDown() {
+ super.testOnKeyDown();
+ }
+
+ @Test
+ public void testOnKeyPress() {
+ super.testOnKeyPress();
+ }
+
+ @Test
+ public void testOnKeyUp() {
+ super.testOnKeyUp();
+ }
+
+ @Test
+ public void testOnMouseDown() {
+ super.testOnMouseDown();
+ }
+
+ @Test
+ public void testOnMouseMove() {
+ super.testOnMouseMove();
+ }
+
+ @Test
+ public void testOnMouseOut() {
+ super.testOnMouseOut();
+ }
+
+ @Test
+ public void testOnMouseOver() {
+ super.testOnMouseOver();
+ }
+
+ @Test
+ public void testOnMouseUp() {
+ super.testOnMouseUp();
+ }
+
}
Modified:
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSR303.java
===================================================================
---
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSR303.java 2011-05-05
21:13:33 UTC (rev 22473)
+++
modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richMessages/TestRichMessagesJSR303.java 2011-05-05
21:14:05 UTC (rev 22474)
@@ -26,6 +26,7 @@
import java.net.URL;
import org.jboss.test.selenium.locator.JQueryLocator;
+import org.testng.annotations.Test;
/**
* Test case for page /faces/components/richMessages/jsr303.xhtml
@@ -55,4 +56,111 @@
return detail;
}
+ // list of called test methods
+
+ @Test
+ public void testFor(){
+ super.testFor();
+ }
+
+ @Test
+ public void testGlobalOnly(){
+ super.testGlobalOnly();
+ }
+
+ @Test
+ public void testAjaxRendered() {
+ super.testAjaxRendered();
+ }
+
+ @Test
+ public void testRendered() {
+ super.testRendered();
+ }
+
+ @Test
+ public void testShowSummary(){
+ super.testShowSummary();
+ }
+
+ @Test
+ public void testShowDetail(){
+ super.testShowDetail();
+ }
+
+ @Test
+ public void testTitle(){
+ super.testTitle();
+ }
+
+ @Test
+ public void testDir(){
+ super.testDir();
+ }
+
+ @Test
+ public void testLang(){
+ super.testLang();
+ }
+
+ @Test
+ public void testStyle(){
+ super.testStyle();
+ }
+
+ @Test
+ public void testStyleClass(){
+ super.testStyleClass();
+ }
+
+ @Test
+ public void testOnClick() {
+ super.testOnClick();
+ }
+
+ @Test
+ public void testOnDblClick() {
+ super.testOnDblClick();
+ }
+
+ @Test
+ public void testOnKeyDown() {
+ super.testOnKeyDown();
+ }
+
+ @Test
+ public void testOnKeyPress() {
+ super.testOnKeyPress();
+ }
+
+ @Test
+ public void testOnKeyUp() {
+ super.testOnKeyUp();
+ }
+
+ @Test
+ public void testOnMouseDown() {
+ super.testOnMouseDown();
+ }
+
+ @Test
+ public void testOnMouseMove() {
+ super.testOnMouseMove();
+ }
+
+ @Test
+ public void testOnMouseOut() {
+ super.testOnMouseOut();
+ }
+
+ @Test
+ public void testOnMouseOver() {
+ super.testOnMouseOver();
+ }
+
+ @Test
+ public void testOnMouseUp() {
+ super.testOnMouseUp();
+ }
+
}