From richfaces-svn-commits at lists.jboss.org Fri Feb 27 09:11:32 2009 Content-Type: multipart/mixed; boundary="===============7643127388348074118==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r12770 - in trunk/test-applications/seleniumTest/richfaces/src: main/webapp/pages/insert and 1 other directories. Date: Fri, 27 Feb 2009 09:11:31 -0500 Message-ID: --===============7643127388348074118== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: konstantin.mishin Date: 2009-02-27 09:11:31 -0500 (Fri, 27 Feb 2009) New Revision: 12770 Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ins= ert/ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ins= ert/insertAutoTest.xhtml trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/ins= ert/src.txt trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfac= es/testng/InsertTest.java Log: RF-6309 Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages= /insert/insertAutoTest.xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/in= sert/insertAutoTest.xhtml (rev 0) +++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/in= sert/insertAutoTest.xhtml 2009-02-27 14:11:31 UTC (rev 12770) @@ -0,0 +1,14 @@ + + + = + + + + + + \ No newline at end of file Added: trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages= /insert/src.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/in= sert/src.txt (rev 0) +++ trunk/test-applications/seleniumTest/richfaces/src/main/webapp/pages/in= sert/src.txt 2009-02-27 14:11:31 UTC (rev 12770) @@ -0,0 +1 @@ +some text \ No newline at end of file Added: trunk/test-applications/seleniumTest/richfaces/src/test/java/org/ric= hfaces/testng/InsertTest.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfa= ces/testng/InsertTest.java (rev 0) +++ trunk/test-applications/seleniumTest/richfaces/src/test/java/org/richfa= ces/testng/InsertTest.java 2009-02-27 14:11:31 UTC (rev 12770) @@ -0,0 +1,40 @@ +package org.richfaces.testng; + +import org.ajax4jsf.template.Template; +import org.richfaces.AutoTester; +import org.richfaces.SeleniumTestBase; +import org.testng.Assert; +import org.testng.annotations.Test; + +public class InsertTest extends SeleniumTestBase { + + /** + * component is present on the page and value is output + */ + @Test + public void testContent(Template template) { + AutoTester autoTester =3D getAutoTester(this); + autoTester.renderPage(template, null); + Assert.assertEquals(selenium.getText("id=3D" + autoTester.getClientId= (AutoTester.COMPONENT_ID)), "some text"); + } + + /** + * component with rendered =3D false is not present on the page + */ + @Test + public void testRendered(Template template) { + AutoTester autoTester =3D getAutoTester(this); + autoTester.renderPage(template, null); + autoTester.testRendered(); + } + + @Override + public String getTestUrl() { + throw new UnsupportedOperationException(); + } + + @Override + public String getAutoTestUrl() { + return "pages/insert/insertAutoTest.xhtml"; + } +} --===============7643127388348074118==--