JBoss Rich Faces SVN: r19334 - modules/tests/archetypes/richfaces-simpleapp-ftest/tags.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-24 03:38:49 -0400 (Fri, 24 Sep 2010)
New Revision: 19334
Added:
modules/tests/archetypes/richfaces-simpleapp-ftest/tags/metamer-4.0.0.20100826-M2/
Log:
[maven-scm] copy for tag metamer-4.0.0.20100826-M2
Copied: modules/tests/archetypes/richfaces-simpleapp-ftest/tags/metamer-4.0.0.20100826-M2 (from rev 19333, modules/tests/archetypes/richfaces-simpleapp-ftest/trunk)
14 years, 2 months
JBoss Rich Faces SVN: r19332 - modules/tests/archetypes/richfaces-simpleapp-ftest/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-24 03:25:42 -0400 (Fri, 24 Sep 2010)
New Revision: 19332
Modified:
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/
Log:
set svn:ignore on .
Property changes on: modules/tests/archetypes/richfaces-simpleapp-ftest/trunk
___________________________________________________________________
Name: svn:ignore
+ .classpath
.project
.settings
target
test-output
profiles.xml
14 years, 2 months
JBoss Rich Faces SVN: r19331 - modules/tests/archetypes/richfaces-simpleapp-ftest/trunk.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-24 03:19:03 -0400 (Fri, 24 Sep 2010)
New Revision: 19331
Modified:
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml
Log:
switched to released version of richfaces-selenium 1.5.1.Final
Modified: modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml
===================================================================
--- modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml 2010-09-24 06:38:53 UTC (rev 19330)
+++ modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml 2010-09-24 07:19:03 UTC (rev 19331)
@@ -26,7 +26,7 @@
<parent>
<artifactId>functional-test-jboss-ci-template</artifactId>
<groupId>org.jboss.test.richfaces-selenium</groupId>
- <version>1.5.2-SNAPSHOT</version>
+ <version>1.5.1.Final</version>
</parent>
<groupId>org.richfaces.tests.archetypes</groupId>
14 years, 2 months
JBoss Rich Faces SVN: r19330 - in modules/tests/archetypes/richfaces-simpleapp-ftest/trunk: src and 7 other directories.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-24 02:38:53 -0400 (Fri, 24 Sep 2010)
New Revision: 19330
Added:
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/.gitignore
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/release.sh
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/archetypes/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/archetypes/simpleapp/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/archetypes/simpleapp/TestInput.java
Log:
import of functional test (RF-8949)
Added: modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/.gitignore
===================================================================
--- modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/.gitignore (rev 0)
+++ modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/.gitignore 2010-09-24 06:38:53 UTC (rev 19330)
@@ -0,0 +1,6 @@
+/.classpath
+/.project
+/.settings
+/target
+/test-output
+/profiles.xml
Added: modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml
===================================================================
--- modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml (rev 0)
+++ modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/pom.xml 2010-09-24 06:38:53 UTC (rev 19330)
@@ -0,0 +1,109 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+ <!--
+ JBoss, Home of Professional Open Source Copyright 2010, 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.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <artifactId>functional-test-jboss-ci-template</artifactId>
+ <groupId>org.jboss.test.richfaces-selenium</groupId>
+ <version>1.5.2-SNAPSHOT</version>
+ </parent>
+
+ <groupId>org.richfaces.tests.archetypes</groupId>
+ <artifactId>richfaces-simpleapp-ftest</artifactId>
+ <version>4.0.0-SNAPSHOT</version>
+ <name>richfaces-simpleapp-ftest</name>
+ <description>Functional Test for richfaces-archetype-simpleapp</description>
+
+ <scm>
+ <connection>scm:svn:http://anonsvn.jboss.org/repos/richfaces/modules/tests/archetypes...</connection>
+ <developerConnection>scm:svn:https://svn.jboss.org/repos/richfaces/modules/tests/archetypes/ri...</developerConnection>
+ <url>http://fisheye.jboss.org/browse/RichFaces/modules/tests/archetypes/richfa...</url>
+ </scm>
+
+ <licenses>
+ <license>
+ <name>GNU Lesser General Public License, Version 2.1</name>
+ <distribution>repo</distribution>
+ <url>http://www.gnu.org/licenses/lgpl-2.1.txt</url>
+ </license>
+ </licenses>
+
+ <developers>
+ <developer>
+ <name>Lukas Fryc</name>
+ <email>lfryc(a)redhat.com</email>
+ </developer>
+ </developers>
+
+ <issueManagement>
+ <system>jira</system>
+ <url>https://jira.jboss.org/jira/browse/RFPL</url>
+ </issueManagement>
+
+ <distributionManagement>
+ <snapshotRepository>
+ <id>jboss-qa-snapshots</id>
+ <name>JBoss QA snapshot repository</name>
+ <url>http://nexus.qa.jboss.com:8081/nexus/content/repositories/snapshots</url>
+ </snapshotRepository>
+ <repository>
+ <id>jboss-qa-releases</id>
+ <name>JBoss QA selease repository</name>
+ <url>http://nexus.qa.jboss.com:8081/nexus/content/repositories/releases</url>
+ </repository>
+ </distributionManagement>
+
+ <properties>
+ <context.path>/richfaces-simpleapp/</context.path>
+ </properties>
+
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.6</source>
+ <target>1.6</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <test>*</test>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-release-plugin</artifactId>
+ <configuration>
+ <arguments>-Dselenium.test.skip=true -Dselenium.server.skip=true</arguments>
+ <tagBase>https://svn.jboss.org/repos/richfaces/modules/tests/archetypes/richfaces-...</tagBase>
+ <branchBase>https://svn.jboss.org/repos/richfaces/modules/tests/archetypes/richfaces-...</branchBase>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+
+</project>
\ No newline at end of file
Added: modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/release.sh
===================================================================
--- modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/release.sh (rev 0)
+++ modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/release.sh 2010-09-24 06:38:53 UTC (rev 19330)
@@ -0,0 +1,24 @@
+#!/bin/bash
+read -p 'Enter release version: ' RELEASE
+read -p 'Enter new development version: ' DEVELOPMENT
+read -p 'Enter path to the settings.xml: ' MVN_SETTINGS
+
+CONF="--batch-mode -Dtag=metamer-${RELEASE} -DreleaseVersion=${RELEASE} -DdevelopmentVersion=${DEVELOPMENT}"
+
+if [ -n "$MVN_SETTINGS" ]; then
+ echo "**** NIE JE PRAZDNE $MVN_SETTINGS"
+ CONF="$CONF -s $MVN_SETTINGS";
+fi
+
+echo "Configuration: ${CONF}"
+
+read -p 'Press ENTER to clean...'
+mvn release:clean clean ${CONF}
+read -p 'Press ENTER to dry run...'
+mvn release:prepare -DdryRun=true ${CONF} || exit 1
+read -p 'Press ENTER to clean...'
+mvn release:clean ${CONF}
+read -p 'Press ENTER to prepare...'
+mvn clean release:prepare ${CONF} || exit 1
+read -p 'Press ENTER to perform...'
+mvn release:perform ${CONF} || exit 1
Added: modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/archetypes/simpleapp/TestInput.java
===================================================================
--- modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/archetypes/simpleapp/TestInput.java (rev 0)
+++ modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/src/test/java/org/richfaces/tests/archetypes/simpleapp/TestInput.java 2010-09-24 06:38:53 UTC (rev 19330)
@@ -0,0 +1,91 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, 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.archetypes.simpleapp;
+
+import static org.jboss.test.selenium.guard.request.RequestTypeGuardFactory.waitXhr;
+import static org.jboss.test.selenium.locator.LocatorFactory.id;
+import static org.jboss.test.selenium.utils.text.SimplifiedFormat.format;
+import static org.testng.Assert.assertEquals;
+
+import java.util.regex.Matcher;
+import java.util.regex.Pattern;
+
+import org.jboss.test.selenium.AbstractTestCase;
+import org.jboss.test.selenium.dom.Event;
+import org.jboss.test.selenium.locator.ElementLocator;
+import org.testng.annotations.Test;
+
+/**
+ * <p>
+ * Tests that input reacts to keyup events by sending XHR request and rerendering output as greeting to given name.
+ * </p>
+ *
+ * <p>
+ * If input has empty value, output is also empty.
+ * </p>
+ *
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+public class TestInput extends AbstractTestCase {
+
+ final String inputName = "RichFaces Fan";
+ Pattern pattern = Pattern.compile("Hello ([\\w ]+)!");
+
+ ElementLocator<?> input = id("nameInput");
+ ElementLocator<?> output = id("output");
+
+ @Test
+ public void test() {
+ selenium.open(contextPath);
+ selenium.waitForPageToLoad();
+
+ for (int i = 0; i <= inputName.length(); i++) {
+ String nameToType = inputName.substring(0, i);
+ typeName(nameToType);
+ assertEquals(parseNameFromOutput(), nameToType);
+ }
+
+ typeName("");
+ assertEquals(parseNameFromOutput(), "");
+ }
+
+ private void typeName(String name) {
+ selenium.type(input, name);
+ waitXhr(selenium).fireEvent(input, Event.KEYUP);
+ }
+
+ private String parseNameFromOutput() {
+ String outputText = selenium.getText(output);
+
+ Matcher matcher = pattern.matcher(outputText);
+ if (!matcher.find()) {
+ if ("".equals(outputText)) {
+ return "";
+ }
+ throw new IllegalStateException(format("Output text '{0}' doesn't match pattern '{1}'", outputText,
+ pattern.toString()));
+ }
+
+ return matcher.group(1);
+ }
+}
14 years, 2 months
JBoss Rich Faces SVN: r19329 - in modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US: images and 1 other directory.
by richfaces-svn-commits@lists.jboss.org
Author: SeanRogers
Date: 2010-09-24 02:13:12 -0400 (Fri, 24 Sep 2010)
New Revision: 19329
Added:
modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richinplaceSelect-richinplaceSelect.png
Modified:
modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
Log:
Updated rich:inplaceSelect (RF-9038)
Modified: modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml
===================================================================
--- modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2010-09-24 05:30:37 UTC (rev 19328)
+++ modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Rich_inputs.xml 2010-09-24 06:13:12 UTC (rev 19329)
@@ -418,6 +418,19 @@
<para>
The <sgmltag><rich:inplaceSelect></sgmltag> component is similar to the <sgmltag><rich:inplaceInput></sgmltag> component, except that the <sgmltag><rich:inplaceSelect></sgmltag> component uses a drop-down selection box to enter text instead of a regular text field. Changes can be rendered either in-line or for the whole block, and inputs can be focused with keyboard navigation. The component has three functional states: the "view" state, where the component displays its initial setting, such as "click to edit"; the "edit" state, where the user can select a value from a drop-down list; and the "changed" state, where the new value for the component has been confirmed but can be edited again if required.
</para>
+ <figure id="figu-Component_Reference-richinplaceSelect-richinplaceSelect">
+ <title><sgmltag><rich:inplaceSelect></sgmltag></title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/figu-Component_Reference-richinplaceSelect-richinplaceSelect.png" format="PNG" />
+ </imageobject>
+ <textobject>
+ <para>
+ The figure shows the process of interaction with a <sgmltag><rich:inplaceSelect></sgmltag> component. The first line shows the component displayed as a <guilabel>click to edit</guilabel> label. Once the label is clicked, the component becomes a drop-down list, shown in the second line. The final line shows the new selection in the text, which can be clicked and changed again if necessary.
+ </para>
+ </textobject>
+ </mediaobject>
+ </figure>
<section id="sect-Component_Reference-richinplaceSelect-Basic_usage">
<title>Basic usage</title>
Added: modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richinplaceSelect-richinplaceSelect.png
===================================================================
(Binary files differ)
Property changes on: modules/docs/branches/M3_draft/Component_Reference/src/main/docbook/en-US/images/figu-Component_Reference-richinplaceSelect-richinplaceSelect.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
14 years, 2 months
JBoss Rich Faces SVN: r19328 - modules/tests/archetypes/richfaces-simpleapp-ftest.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-24 01:30:37 -0400 (Fri, 24 Sep 2010)
New Revision: 19328
Added:
modules/tests/archetypes/richfaces-simpleapp-ftest/branches/
modules/tests/archetypes/richfaces-simpleapp-ftest/tags/
modules/tests/archetypes/richfaces-simpleapp-ftest/trunk/
Log:
added standard trunk/branches/tags structure
14 years, 2 months
JBoss Rich Faces SVN: r19326 - modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean.
by richfaces-svn-commits@lists.jboss.org
Author: lfryc(a)redhat.com
Date: 2010-09-24 00:59:46 -0400 (Fri, 24 Sep 2010)
New Revision: 19326
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRegionBean.java
Log:
fixed checkstyle violations
Modified: modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRegionBean.java
===================================================================
--- modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRegionBean.java 2010-09-23 15:45:24 UTC (rev 19325)
+++ modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/A4JRegionBean.java 2010-09-24 04:59:46 UTC (rev 19326)
@@ -64,45 +64,11 @@
private String decorationExecute;
private String decorationValue;
private String insertionExecute;
-
- public String getInsertionExecute() {
- return insertionExecute;
- }
-
- public void setInsertionExecute(String insertionExecute) {
- this.insertionExecute = insertionExecute;
- }
-
- public String getInsertionValue() {
- return insertionValue;
- }
-
- public void setInsertionValue(String insertionValue) {
- this.insertionValue = insertionValue;
- }
-
- private String insertionValue;
-
- public String getDecorationExecute() {
- return decorationExecute;
- }
-
- public void setDecorationExecute(String decorationExecute) {
- this.decorationExecute = decorationExecute;
- }
-
- public String getDecorationValue() {
- return decorationValue;
- }
-
- public void setDecorationValue(String decorationValue) {
- this.decorationValue = decorationValue;
- }
-
private String outerValue;
private String regionValue;
private String nestedRegionValue;
private String lastExecutedButtonValue;
+ private String insertionValue;
/**
* Initializes the managed bean.
@@ -197,7 +163,39 @@
public void setOuterExecute(String outerExecute) {
this.outerExecute = outerExecute;
}
+
+ public String getInsertionExecute() {
+ return insertionExecute;
+ }
+ public void setInsertionExecute(String insertionExecute) {
+ this.insertionExecute = insertionExecute;
+ }
+
+ public String getInsertionValue() {
+ return insertionValue;
+ }
+
+ public void setInsertionValue(String insertionValue) {
+ this.insertionValue = insertionValue;
+ }
+
+ public String getDecorationExecute() {
+ return decorationExecute;
+ }
+
+ public void setDecorationExecute(String decorationExecute) {
+ this.decorationExecute = decorationExecute;
+ }
+
+ public String getDecorationValue() {
+ return decorationValue;
+ }
+
+ public void setDecorationValue(String decorationValue) {
+ this.decorationValue = decorationValue;
+ }
+
public void handleBehavior(AjaxBehaviorEvent event) {
lastExecutedButtonValue = (String) event.getComponent().getAttributes().get("value");
}
@@ -214,6 +212,5 @@
setDecorationExecute(newValue);
setInsertionExecute(newValue);
setNestedExecute(newValue);
-
}
}
14 years, 2 months