JBoss Rich Faces SVN: r11453 - trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-12-01 07:24:40 -0500 (Mon, 01 Dec 2008)
New Revision: 11453
Modified:
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java
Log:
RF-5135
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java 2008-12-01 12:19:16 UTC (rev 11452)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java 2008-12-01 12:24:40 UTC (rev 11453)
@@ -53,7 +53,15 @@
return "c:/FFProfile";
}
- @Test
+ @Test
+ public void testOncomplete(Template template) {
+ AutoTester tester = getAutoTester(this);
+ tester.renderPage(template, RESET_METHOD);
+
+ tester.testOncomplete();
+ }
+
+ //@Test
public void testRendered(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
16 years
JBoss Rich Faces SVN: r11452 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/dnd and 1 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: andrei_exadel
Date: 2008-12-01 07:19:16 -0500 (Mon, 01 Dec 2008)
New Revision: 11452
Modified:
trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java
trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dnd/dndTest.xhtml
trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java
Log:
RF-5134
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java 2008-12-01 08:33:33 UTC (rev 11451)
+++ trunk/test-applications/seleniumTest/richfaces/src/main/java/org/ajax4jsf/bean/DnDBean.java 2008-12-01 12:19:16 UTC (rev 11452)
@@ -33,6 +33,8 @@
private Object dropValue;
private Object dragValue;
+
+ private Boolean rendered;
public DnDBean() {
initList();
@@ -75,9 +77,15 @@
status = "";
dropValue = null;
dragValue = null;
+ rendered = true;
initList();
return null;
}
+
+ public String testRendered() {
+ rendered = false;
+ return null;
+ }
private void initList() {
frameworks = new ArrayList<Framework>();
@@ -189,5 +197,15 @@
public void setDragValue(Object dragValue) {
this.dragValue = dragValue;
}
+
+
+ public Boolean getRendered() {
+ return rendered;
+ }
+
+
+ public void setRendered(Boolean rendered) {
+ this.rendered = rendered;
+ }
}
Modified: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/dnd/dndTest.xhtml
===================================================================
(Binary files differ)
Modified: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java
===================================================================
--- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java 2008-12-01 08:33:33 UTC (rev 11451)
+++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfaces/testng/DnDTest.java 2008-12-01 12:19:16 UTC (rev 11452)
@@ -1,6 +1,7 @@
package org.richfaces.testng;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -51,8 +52,25 @@
protected String getFirefoxTemplate() {
return "c:/FFProfile";
}
+
+ @Test
+ public void testRendered(Template template) {
+ renderPage(template, RESET_METHOD);
+ initIds(getParentId());
+
+ String controlsId = getParentId() + "_controls:testRendered";
+ clickCommandAndWait(controlsId);
+
+ _DragAndDrop(0, phpDropZoneId);
+ AssertTextEquals(phpDropZoneId + "_body", "", "Drop zone text should be empty");
+ assertDropValue("");
+
+ assertListeners();
+ assertEvents(Collections.EMPTY_LIST);
+ }
+
- @Test
+ //@Test
public void testDragValue(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -68,7 +86,7 @@
}
- @Test
+ //@Test
public void testDropValue(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -86,7 +104,7 @@
testDropData();
}
- @Test
+ //@Test
public void testListeners(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -102,7 +120,7 @@
}
- @Test
+ //@Test
public void testEvents(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -119,7 +137,7 @@
assertEvents(eventsExpected);
}
- @Test
+ //@Test
public void testListenersIfTypeNotAccepted(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -139,7 +157,7 @@
assertListeners();
}
- @Test
+ //@Test
public void testEventsIfTypeNotAccepted(Template template) {
renderPage(template, RESET_METHOD);
initIds(getParentId());
@@ -155,7 +173,7 @@
assertEvents(eventsExpected);
}
- @Test
+ // @Test
public void testNestedParameters(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
@@ -163,7 +181,7 @@
tester.testRequestParameters(parameters);
}
- @Test
+ //@Test
public void testByPassUpdate(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
@@ -171,7 +189,7 @@
tester.testBypassUpdate();
}
- @Test
+ //@Test
public void testReRender(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
@@ -179,7 +197,7 @@
tester.testReRender();
}
- @Test
+ //@Test
public void testLimit2List(Template template) {
AutoTester tester = getAutoTester(this);
tester.renderPage(template, RESET_METHOD);
16 years
JBoss Rich Faces SVN: r11451 - trunk/ui/editor.
by richfaces-svn-commits@lists.jboss.org
Author: abelevich
Date: 2008-12-01 03:33:33 -0500 (Mon, 01 Dec 2008)
New Revision: 11451
Modified:
trunk/ui/editor/pom.xml
Log:
fix for clover profile
Modified: trunk/ui/editor/pom.xml
===================================================================
--- trunk/ui/editor/pom.xml 2008-11-28 22:55:58 UTC (rev 11450)
+++ trunk/ui/editor/pom.xml 2008-12-01 08:33:33 UTC (rev 11451)
@@ -59,6 +59,23 @@
</plugins>
</build>
+<profiles>
+ <profile>
+ <id>clover</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.atlassian.maven.plugins</groupId>
+ <artifactId>maven-clover2-plugin</artifactId>
+ <configuration>
+ <includesAllSourceRoots>false</includesAllSourceRoots>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+
<dependencies>
<dependency>
<groupId>org.richfaces.framework</groupId>
16 years