[seam-commits] Seam SVN: r14584 - in branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking: groovybooking-tests and 4 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 16 05:45:42 EDT 2012


Author: rsmeral
Date: 2012-04-16 05:45:41 -0400 (Mon, 16 Apr 2012)
New Revision: 14584

Added:
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/seam.properties
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/pom.xml
   branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/readme.txt
Log:
metawidget/groovybooking (partly broken)

Added: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/pom.xml	2012-04-16 09:45:41 UTC (rev 14584)
@@ -0,0 +1,201 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <artifactId>groovybooking</artifactId>
+        <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
+        <version>2.3.0.Beta2-SNAPSHOT</version>
+        <relativePath>../pom.xml</relativePath>
+    </parent>
+    
+    <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
+    <artifactId>groovybooking-tests</artifactId>
+    <name>Metawidget Groovy Booking Integration Tests Module (EE6)</name>
+    
+    <dependencies>
+        <dependency>
+            <groupId>org.testng</groupId>
+            <artifactId>testng</artifactId>
+            <classifier>jdk15</classifier>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.seam</groupId>
+            <artifactId>jboss-seam</artifactId>
+            <type>ejb</type>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>com.sun.faces</groupId>
+            <artifactId>jsf-api</artifactId>
+            <scope>provided</scope>
+        </dependency>
+        <dependency>
+            <groupId>org.seleniumhq.selenium.server</groupId>
+            <artifactId>selenium-server</artifactId>
+            <classifier>standalone</classifier>
+        </dependency>
+        <dependency>
+            <groupId>org.seleniumhq.selenium.client-drivers</groupId>
+            <artifactId>selenium-java-client-driver</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.jboss.seam</groupId>
+            <artifactId>functional-tests</artifactId>
+            <scope>test</scope>
+        </dependency>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.jboss.arquillian.junit</groupId>
+            <artifactId>arquillian-junit-container</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.jboss.arquillian.protocol</groupId>
+            <artifactId>arquillian-protocol-servlet</artifactId>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+
+    <build>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+            </testResource>
+            <testResource>
+                <directory>src/test/resources-integration</directory>
+            </testResource>
+        </testResources>
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <skip>true</skip>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.codehaus.mojo</groupId>
+                <artifactId>build-helper-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>add-test-source</id>
+                        <phase>generate-test-sources</phase>
+                        <goals>
+                            <goal>add-test-source</goal>
+                        </goals>
+                        <configuration>
+                            <sources>
+                                <source>${basedir}/../hibernate-web/src/main/groovy</source>
+                                <source>${basedir}/../hibernate-web/src/main/java</source>
+                            </sources>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+    <profiles>
+        <profile>
+            <id>integration-tests</id>
+            <activation>
+                <property>
+                    <name>arquillian</name>
+                </property>
+            </activation>
+        </profile>
+
+        <profile>
+            <id>arq-jbossas-7-managed</id>
+            <activation>
+                <property>
+                    <name>arquillian</name>
+                    <value>jbossas-managed-7</value>
+                </property>
+            </activation>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-dependency-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+
+        <profile>
+            <id>arq-jbossas-7-remote</id>
+            <activation>
+                <property>
+                    <name>arquillian</name>
+                    <value>jbossas-remote-7</value>
+                </property>
+            </activation>
+        </profile>
+
+        <profile>
+            <id>ftest-jbossas</id>
+            <properties>
+                <example.context.path>jboss-seam-metawidget-groovybooking</example.context.path>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>jboss-maven-plugin</artifactId>
+                        <configuration>
+                            <jbossHome>${jboss.home}</jbossHome>
+                            <serverName>${jboss.domain}</serverName>
+                             <fileNames>
+                                <directory>${basedir}/../groovybooking-web/target/jboss-seam-metawidget-groovybooking-exploded/jboss-seam-metawidget-groovybooking.war</directory>
+                            </fileNames>
+                        </configuration>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>selenium-maven-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>failsafe-maven-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+        <profile>
+            <id>ftest-tomcat</id>
+            <properties>
+                <example.context.path>jboss-seam-metawidget-groovybooking</example.context.path>
+            </properties>
+            <build>
+                <plugins>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>selenium-maven-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.codehaus.mojo</groupId>
+                        <artifactId>failsafe-maven-plugin</artifactId>
+                    </plugin>
+                    <plugin>
+                        <groupId>org.apache.maven.plugins</groupId>
+                        <artifactId>maven-antrun-plugin</artifactId>
+                    </plugin>
+                </plugins>
+            </build>
+        </profile>
+    </profiles>
+</project>

Added: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties
===================================================================
--- branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties	2012-04-16 09:45:41 UTC (rev 14584)
@@ -0,0 +1,84 @@
+ #
+ # JBoss, Home of Professional Open Source
+ # Copyright 2008, Red Hat Middleware LLC, 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.
+ # 
+HOME_PAGE /home.seam
+MAIN_PAGE /main.seam
+PAGE_TITLE JBoss Suites: Seam Framework
+LOGIN_USERNAME_FIELD id=login:username
+LOGIN_PASSWORD_FIELD id=login:password
+LOGIN_SUBMIT id=login:login
+LOGOUT id=logout
+PASSWORD_UPDATED_MESSAGE Password updated
+PASSWORD_REENTER_MESSAGE verify
+PASSWORD_VALUE_REQUIRED_MESSAGE //div[@class='errors']
+PASSWORD_LENGTH_MESSAGE length must be between
+PASSWORD_PASSWORD id=setpassword:PasswordDecorate:password
+PASSWORD_VERIFY id=setpassword:VerifyDecorate:verify
+PASSWORD_SUBMIT id=setpassword:change
+SETTINGS id=settings
+SEARCH_STRING_FIELD id=main:searchString
+SEARCH_SUBMIT id=main:findHotels
+NO_HOTELS_FOUND id=NoHotelsFoundMessage
+SEARCH_RESULT_TABLE xpath=//table[@id = 'hotels']/tbody
+SEARCH_RESULT_TABLE_FIRST_ROW_LINK id=hotels:0:viewHotel
+BOOKING_BOOK id=hotel:bookHotel
+BOOKING_CANCEL id=hotel:cancel
+HOTEL_BED_FIELD id=booking:bookingBeds
+HOTEL_BED_FIELD_SELECT_CRITERIA value=
+HOTEL_CHECKIN_DATE_FIELD id=booking:bookingCheckinDateInputDate
+HOTEL_CHECKIN_DATE_MESSAGE xpath=//li[contains(.,'Check in date')]
+HOTEL_CHECKOUT_DATE_FIELD id=booking:bookingCheckoutDateInputDate
+HOTEL_CHECKOUT_DATE_MESSAGE xpath=//li[contains(.,'Check out date')]
+HOTEL_SMOKING_1 id=booking:bookingSmoking:0
+HOTEL_SMOKING_2 id=booking:bookingSmoking:1
+HOTEL_CREDIT_CARD id=booking:bookingCreditCard
+HOTEL_CREDIT_CARD_NAME id=booking:bookingCreditCardName
+HOTEL_PROCEED id=booking:proceed
+HOTEL_CANCEL id=booking:cancel
+HOTEL_CONFIRM id=confirm:confirm
+HOTEL_MESSAGE xpath=//ul[@id='main:messages']/li
+REGISTRATION id=login:register
+REGISTRATION_USERNAME id=register:usernameDecorate:username
+REGISTRATION_USERNAME_MESSAGE xpath=id('register:usernameDecorate')//div[@class='errors']
+REGISTRATION_NAME id=register:nameDecorate:name
+REGISTRATION_NAME_MESSAGE xpath=id('register:nameDecorate')//div[@class='errors']
+REGISTRATION_PASSWORD id=register:passwordDecorate:password
+REGISTRATION_PASSWORD_MESSAGE xpath=id('register:passwordDecorate')//div[@class='errors']
+REGISTRATION_VERIFY id=register:verifyDecorate:verify
+REGISTRATION_VERIFY_MESSAGE xpath=id('register:verifyDecorate')//div[@class='errors']
+REGISTRATION_SUBMIT id=register:register
+REGISTRATION_REENTER_MESSAGE verify
+REGISTRATION_LENGTH_MESSAGE length must be between
+REGISTRATION_SUCCESSFUL_MESSAGE Successfully registered as {0}
+REGISTRATION_USER_EXISTS_MESSAGE Username {0} already exists
+NOT_LOGGED_IN_MESSAGE Please log in first
+CONVERSATION_TIMEOUT_MESSAGE The conversation ended, timed out or was processing another request
+BOOKING_TABLE_ITEM xpath\=//table[@id\="bookings\:bookings"]/tbody/tr[normalize-space(td[6]/text()) \= "{0}"][normalize-space(td[1]/text()) \= "{1}"]
+BOOKING_TABLE_ITEM_LINK xpath\=//table[@id\="bookings\:bookings"]/tbody/tr[normalize-space(td[6]/text()) \= "{0}"][normalize-space(td[1]/text()) \= "{1}"]/td[7]/a
+BOOKING_CANCELLED_MESSAGE Booking cancelled for confirmation number {0}
+BOOKING_CONFIRMATION_MESSAGE Thank you, {0}, your confimation number for {1} is \\d+
+BOOKING_INVALID_DATE_MESSAGE1 Check out date must be later than check in date
+BOOKING_INVALID_DATE_MESSAGE2 Check in date must be a future date
+WORKSPACE_BOOKING_TEXT Book hotel: {0}
+WORKSPACE_VIEW_TEXT View hotel: {0}
+WORKSPACE_TABLE_LINK_BY_ID id=ConversationListForm:ConversationListDataTable:{0}:EntryDescriptionLink
+WORKSPACE_TABLE_ROW_COUNT = //table[@id='ConversationListForm:ConversationListDataTable']/tbody/tr
+SPINNER id=main:Spinner


Property changes on: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/metawidget-groovybooking.properties
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/seam.properties
===================================================================
--- branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/seam.properties	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources/seam.properties	2012-04-16 09:45:41 UTC (rev 14584)
@@ -0,0 +1,3 @@
+#debug is explicitly disabled in test to avoid JBIDE-3623
+#Thu Dec 31 16:24:37 CET 2009
+org.jboss.seam.core.init.debug=false
\ No newline at end of file

Added: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml	2012-04-16 09:45:41 UTC (rev 14584)
@@ -0,0 +1,34 @@
+<!--
+    JBoss, Home of Professional Open Source Copyright 2008, Red Hat
+    Middleware LLC, 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.
+--> 
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="Metawidget Groovybooking example" verbose="2" parallel="false">
+    <test name="metawidget_groovybooking_tests">
+        <parameter name="PROPERTY_FILE" value="/metawidget-groovybooking.properties" />
+        <classes>
+            <class
+                name="org.jboss.seam.example.common.test.booking.selenium.RegistrationTest" />
+            <class
+                name="org.jboss.seam.example.common.test.booking.selenium.ChangePasswordTest" />
+            <class
+                name="org.jboss.seam.example.common.test.booking.selenium.BackButtonTest" />
+            <class
+                name="org.jboss.seam.example.common.test.booking.selenium.SimpleBookingTest" />
+            <class
+                name="org.jboss.seam.example.common.test.booking.selenium.ConversationTest" />
+        </classes>
+    </test>
+</suite>


Property changes on: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/groovybooking-tests/src/test/resources-ftest/testng.xml
___________________________________________________________________
Added: svn:executable
   + *

Added: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/pom.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/pom.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/pom.xml	2012-04-16 09:45:41 UTC (rev 14584)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<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/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
+    <artifactId>groovybooking</artifactId>
+    <parent>
+        <groupId>org.jboss.seam</groupId>
+        <artifactId>examples-ee6</artifactId>
+        <version>2.3.0.Beta2-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <packaging>pom</packaging>
+    <name>Metawidget Groovy Booking Example (EE6)</name>
+    
+    <properties>
+        <example.name>groovybooking</example.name>
+    </properties>
+    
+    <modules>
+        <module>groovybooking-web</module>
+        <module>groovybooking-tests</module>
+    </modules>
+    
+    <dependencyManagement>
+        <dependencies>
+            <dependency>
+                <groupId>org.jboss.seam.examples-ee6.metawidget</groupId>
+                <artifactId>groovybooking-web</artifactId>
+                <version>${project.version}</version>
+                <type>war</type>
+            </dependency>
+        </dependencies>
+    </dependencyManagement>
+</project>

Added: branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/readme.txt
===================================================================
--- branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/readme.txt	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/metawidget/groovybooking/readme.txt	2012-04-16 09:45:41 UTC (rev 14584)
@@ -0,0 +1,29 @@
+Seam Metawidget GroovyBooking Example
+=====================================
+
+This is the Hotel Booking example implemented in Groovy Beans, Metawidget 
+and Hibernate JPA. This application runs on JBoss AS, but is deployed as 
+an *exploded* WAR rather than an EAR.
+
+A majority of source files in this project comes from non-metawidget GroovyBooking example
+in the distribution. Metawidget resource files are placed under src/metawidget 
+subdirectory of a booking-web submodule.
+
+To deploy the example to JBossAS, follow these steps:
+
+* In the example root directory run:
+
+    mvn clean package
+
+* Set JBOSS_HOME environment property.
+
+* In the groovybooking-web directory run:
+
+    mvn jboss:hard-deploy
+
+When deploying to JBossAS 4, use a -Pjbossas42 maven profile to package the 
+application.
+
+* Open this URL in a web browser: http://localhost:8080/jboss-seam-metawidget-grovybooking
+
+For further Metawidget documentation see http://metawidget.org/documentation.html



More information about the seam-commits mailing list