From richfaces-svn-commits at lists.jboss.org Mon Sep 12 16:11:32 2011 Content-Type: multipart/mixed; boundary="===============0992151661298442034==" 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: r22713 - in modules/tests/metamer/trunk: ftest-source/src/main/java/org/richfaces/tests/metamer/ftest/richAutocomplete and 1 other directory. Date: Mon, 12 Sep 2011 16:11:32 -0400 Message-ID: <201109122011.p8CKBWi6023873@svn01.web.mwc.hst.phx2.redhat.com> --===============0992151661298442034== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: jjamrich Date: 2011-09-12 16:11:32 -0400 (Mon, 12 Sep 2011) New Revision: 22713 Added: modules/tests/metamer/trunk/application/src/main/webapp/components/richA= utocomplete/csv.xhtml modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/tes= ts/metamer/ftest/richAutocomplete/TestAutocompleteCSV.java Modified: modules/tests/metamer/trunk/application/src/main/webapp/components/richA= utocomplete/list.xhtml Log: RFPL-1240: add csv for rich:autocomplete (example + tests) Added: modules/tests/metamer/trunk/application/src/main/webapp/components/r= ichAutocomplete/csv.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 --- modules/tests/metamer/trunk/application/src/main/webapp/components/rich= Autocomplete/csv.xhtml (rev 0) +++ modules/tests/metamer/trunk/application/src/main/webapp/components/rich= Autocomplete/csv.xhtml 2011-09-12 20:11:32 UTC (rev 22713) @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + +

+ + + not empty + + = = + + + + + pattern [a-z].* + + + + + + + size 3-6 + + + + + + + custom (RichFaces) + + + + + + + + +

+ + + output1 + + output2 + + output3 + + output4 + + + +
+ + + + + + +
+ \ No newline at end of file Modified: modules/tests/metamer/trunk/application/src/main/webapp/component= s/richAutocomplete/list.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 --- modules/tests/metamer/trunk/application/src/main/webapp/components/rich= Autocomplete/list.xhtml 2011-09-12 19:02:49 UTC (rev 22712) +++ modules/tests/metamer/trunk/application/src/main/webapp/components/rich= Autocomplete/list.xhtml 2011-09-12 20:11:32 UTC (rev 22713) @@ -43,6 +43,10 @@ Simple page that contains some rich:autocompletes w= ith various JSR-303 validators. + = + + Simple page that contains some rich:autocompletes t= esting client-side validation.. + = = Added: modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces= /tests/metamer/ftest/richAutocomplete/TestAutocompleteCSV.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 --- modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/te= sts/metamer/ftest/richAutocomplete/TestAutocompleteCSV.java = (rev 0) +++ modules/tests/metamer/trunk/ftest-source/src/main/java/org/richfaces/te= sts/metamer/ftest/richAutocomplete/TestAutocompleteCSV.java 2011-09-12 20:1= 1:32 UTC (rev 22713) @@ -0,0 +1,74 @@ +/*************************************************************************= ****** + * JBoss, Home of Professional Open Source + * Copyright 2010-2011, Red Hat, Inc. and individual contributors + * by the @authors tag. See the copyright.txt in the distribution for a + * full listing of individual contributors. + * + * This is free software; you can redistribute it and/or modify it + * under the terms of the GNU Lesser General Public License as + * published by the Free Software Foundation; either version 2.1 of + * the License, or (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this software; if not, write to the Free + * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + * 02110-1301 USA, or see the FSF site: http://www.fsf.org. + *************************************************************************= ******/ +package org.richfaces.tests.metamer.ftest.richAutocomplete; + +import java.net.URL; + +import org.jboss.test.selenium.utils.URLUtils; +import org.testng.annotations.Test; +import org.richfaces.tests.metamer.ftest.annotations.IssueTracking; + +/** + * Test for page faces/components/richAutocomplete/jsr303.xhtml + * + * @author Jan Jamrich + * @version $Revision$ + */ +(a)IssueTracking("") +public class TestAutocompleteCSV extends TestComponentWithJSR303 { + + @Override + public URL getTestUrl() { + return URLUtils.buildUrl(contextPath, "faces/components/richAutoco= mplete/csv.xhtml"); + } + = + @Test + public void testNotEmpty() { + verifyNotEmpty(); + } + = + @Test + public void testRegExpPattern() { + verifyRegExpPattern(); + } + = + @Test + public void testStringSize() { + verifyStringSize(); + } + = + @Test + public void testCustomString() { + verifyCustomString(); + } + = + @Test = + public void testAllInputsWrong() { + verifyAllInputsWrong(); + } + = + @Test + public void testAllInputsCorrect() { + verifyAllInputsCorrect(); + } + = +} --===============0992151661298442034==--