You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2010/04/26 20:56:47 UTC

svn commit: r938193 - in /geronimo/server/trunk/testsuite/web-testsuite: pom.xml test-myfaces/src/test/java/org/apache/geronimo/testsuite/myfaces/TestMyFaces.java

Author: gawor
Date: Mon Apr 26 18:56:47 2010
New Revision: 938193

URL: http://svn.apache.org/viewvc?rev=938193&view=rev
Log:
GERONIMO-5262: Enable myfaces tests

Modified:
    geronimo/server/trunk/testsuite/web-testsuite/pom.xml
    geronimo/server/trunk/testsuite/web-testsuite/test-myfaces/src/test/java/org/apache/geronimo/testsuite/myfaces/TestMyFaces.java

Modified: geronimo/server/trunk/testsuite/web-testsuite/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/pom.xml?rev=938193&r1=938192&r2=938193&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/pom.xml (original)
+++ geronimo/server/trunk/testsuite/web-testsuite/pom.xml Mon Apr 26 18:56:47 2010
@@ -48,8 +48,8 @@
         <module>test-2.1-jsps</module>
         <module>test-2.5-servlets</module>
         <module>test-tld</module>
-<!--
         <module>test-myfaces</module>
+<!--
         <module>test-web-forward</module>
         <module>test-web-references</module>
 -->

Modified: geronimo/server/trunk/testsuite/web-testsuite/test-myfaces/src/test/java/org/apache/geronimo/testsuite/myfaces/TestMyFaces.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/web-testsuite/test-myfaces/src/test/java/org/apache/geronimo/testsuite/myfaces/TestMyFaces.java?rev=938193&r1=938192&r2=938193&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/web-testsuite/test-myfaces/src/test/java/org/apache/geronimo/testsuite/myfaces/TestMyFaces.java (original)
+++ geronimo/server/trunk/testsuite/web-testsuite/test-myfaces/src/test/java/org/apache/geronimo/testsuite/myfaces/TestMyFaces.java Mon Apr 26 18:56:47 2010
@@ -23,8 +23,7 @@ package org.apache.geronimo.testsuite.my
 import org.apache.geronimo.testsupport.SeleniumTestSupport;
 import org.testng.annotations.Test;
 
-public class TestMyFaces extends SeleniumTestSupport
-{
+public class TestMyFaces extends SeleniumTestSupport {
 
     @Test
     public void testManagedBean() throws Exception {
@@ -33,4 +32,14 @@ public class TestMyFaces extends Seleniu
         assertEquals("0.99 Please enter your nameHelloUpdate greeting", selenium.getBodyText());
     }
     
+    @Test
+    public void testPress() throws Exception {
+        selenium.open("/myfaces");
+        waitForPageLoad();
+        selenium.type("form:input1", "Bart Simpson");
+        selenium.click("form:button1");
+        waitForPageLoad();
+        assertEquals("Hello Bart Simpson. We hope you enjoy Apache MyFaces", selenium.getText("xpath=/html/body/h2"));
+    }
+    
 }