Seam SVN: r11356 - in branches/community/Seam_2_2/src/test/ftest/examples: metawidget and 30 other directories.
by seam-commits@lists.jboss.org
Author: kpiwko(a)redhat.com
Date: 2009-08-08 06:45:13 -0400 (Sat, 08 Aug 2009)
New Revision: 11356
Added:
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/build.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss-embedded.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss4.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss5.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/selenium/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.properties
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/build.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss-embedded.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss4.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss5.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/selenium/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/build.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss4.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss5.xml
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/selenium/
branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/selenium/metawidget-groovybooking.properties
Modified:
branches/community/Seam_2_2/src/test/ftest/examples/build.xml
Log:
JBQA-2500
Modified: branches/community/Seam_2_2/src/test/ftest/examples/build.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/build.xml 2009-08-07 13:03:06 UTC (rev 11355)
+++ branches/community/Seam_2_2/src/test/ftest/examples/build.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -78,7 +78,11 @@
<delete dir="${log.dir}" />
</target>
- <target name="build" depends="build.common" description="Compiles the Test">
+ <!-- override this target in example to get specific behaviour -->
+ <target name="build.extras" description="Build example specific files before build">
+ </target>
+
+ <target name="build" depends="build.common, build.extras" description="Compiles the Test">
<javac srcdir="${src.dir}" destdir="${classes.dir}" classpathref="classpath.build" debug="true" />
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/build.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/build.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/build.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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.
+-->
+<project name="metawidget.booking.ftest.build" basedir="." default="build">
+ <property name="example.name" value="metawidget/booking" />
+ <property name="context.path" value="/seam-metawidget-booking" />
+
+ <import file="../../build.xml" />
+</project>
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss-embedded.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss-embedded.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss-embedded.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,36 @@
+
+ <!--
+ 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 Booking example" verbose="2" parallel="false">
+ <test name="metawidget_booking_jboss-embedded">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.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>
\ No newline at end of file
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss-embedded.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss4.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss4.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss4.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,36 @@
+
+ <!--
+ 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 Booking example" verbose="2" parallel="false">
+ <test name="metawidget_booking_jboss4">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.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>
\ No newline at end of file
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss4.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss5.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss5.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/jboss5.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,36 @@
+
+ <!--
+ 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 Booking example" verbose="2" parallel="false">
+ <test name="metawidget_booking_jboss5">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.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_2/src/test/ftest/examples/metawidget/booking/jboss5.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.properties
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.properties (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.properties 2009-08-08 10:45:13 UTC (rev 11356)
@@ -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 Re-enter new password
+PASSWORD_VALUE_REQUIRED_MESSAGE //span[text() = 'value is required']
+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=searchCriteria:searchString
+SEARCH_SUBMIT id=searchCriteria: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 id=messages
+HOTEL_CHECKOUT_DATE_FIELD id=booking:bookingCheckoutDateInputDate
+HOTEL_CHECKOUT_DATE_MESSAGE id=messages
+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='messages']/li
+REGISTRATION id=login:register
+REGISTRATION_USERNAME id=registration:usernameDecorate:username
+REGISTRATION_USERNAME_MESSAGE id=registration:usernameDecorate:message
+REGISTRATION_NAME id=registration:nameDecorate:name
+REGISTRATION_NAME_MESSAGE id=registration:nameDecorate:message
+REGISTRATION_PASSWORD id=registration:passwordDecorate:password
+REGISTRATION_PASSWORD_MESSAGE id=registration:passwordDecorate:message
+REGISTRATION_VERIFY id=registration:verifyDecorate:verify
+REGISTRATION_VERIFY_MESSAGE id=registration:verifyDecorate:message
+REGISTRATION_SUBMIT id=registration:register
+REGISTRATION_REENTER_MESSAGE Re-enter your password
+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\=searchCriteria\:SpinnerGif
\ No newline at end of file
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/booking/src/org/jboss/seam/example/metawidget/booking/test/selenium/metawidget-booking.properties
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/build.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/build.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/build.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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.
+-->
+<project name="metawidget.dvdstore.ftest.build" basedir="." default="build">
+ <property name="example.name" value="metawidget/dvdstore" />
+ <property name="context.path" value="/seam-metawidget-dvdstore" />
+ <import file="../../build.xml" />
+
+ <target name="build.extras">
+ <javac srcdir="${seam.dir}/src/test/ftest/examples/dvdstore/src" destdir="${classes.dir}" classpathref="classpath.build" debug="true" />
+ </target>
+</project>
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss-embedded.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss-embedded.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss-embedded.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,30 @@
+
+ <!--
+ 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 DVD example" verbose="2" parallel="false">
+ <test name="metawidget_dvdstore_jboss-embedded">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties" />
+ <classes>
+ <class name="org.jboss.seam.example.dvd.test.selenium.LoginTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.RegistrationTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.SearchTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.ShoppingCartTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss-embedded.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss4.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss4.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss4.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,30 @@
+
+ <!--
+ 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 DVD example" verbose="2" parallel="false">
+ <test name="metawidget_dvdstore_jboss4">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties" />
+ <classes>
+ <class name="org.jboss.seam.example.dvd.test.selenium.LoginTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.RegistrationTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.SearchTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.ShoppingCartTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss4.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss5.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss5.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss5.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,30 @@
+
+ <!--
+ 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 DVD example" verbose="2" parallel="false">
+ <test name="metawidget_dvdstore_jboss5">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties" />
+ <classes>
+ <class name="org.jboss.seam.example.dvd.test.selenium.LoginTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.RegistrationTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.SearchTest" />
+ <class name="org.jboss.seam.example.dvd.test.selenium.ShoppingCartTest" />
+ </classes>
+ </test>
+</suite>
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/jboss5.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,78 @@
+ #
+ # 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_PAGE_TITLE JBoss DVD Store
+LOGOUT id=LogoutForm:Logout
+REGISTRATION id=LoginForm:CreateAccount
+REGISTRATION_FIRST_PAGE_URL newuser/account
+REGISTRATION_SECOND_PAGE_URL newuser/contact
+REGISTRATION_THIRD_PAGE_URL newuser/card
+REGISTRATION_CONFIRMATION_PAGE_URL newuser/complete
+REGISTRATION_USERNAME id=NewAccountForm:customerUserName
+REGISTRATION_USERNAME_MESSAGE id=table-customerUserName-cell
+REGISTRATION_PASSWORD id=NewAccountForm:customerPassword
+REGISTRATION_PASSWORD_MESSAGE id=table-customerPassword-cell
+REGISTRATION_VERIFY id=NewAccountForm:editCustomerPasswordVerify
+REGISTRATION_FIRST_SUBMIT id=NewAccountForm:next
+REGISTRATION_SECOND_SUBMIT id=NewAccountForm:next
+REGISTRATION_THIRD_SUBMIT id=NewAccountForm:next
+REGISTRATION_FIRST_NAME id=NewAccountForm:customerFirstName
+REGISTRATION_LAST_NAME id=NewAccountForm:customerLastName
+REGISTRATION_ADDRESS id=NewAccountForm:customerAddress1
+REGISTRATION_ADDRESS2 id=NewAccountForm:customerAddress2
+REGISTRATION_CITY id=NewAccountForm:customerCity
+REGISTRATION_STATE id=NewAccountForm:customerState
+REGISTRATION_ZIP id=NewAccountForm:customerZip
+REGISTRATION_EMAIL id=NewAccountForm:customerEmail
+REGISTRATION_PHONE id=NewAccountForm:customerPhone
+REGISTRATION_CONFIRMATION_MESSAGE Registered new customer {0}
+REGISTRATION_CARD_TYPE_SELECT id=NewAccountForm:customerCreditCardType
+REGISTRATION_CARD_NUMBER id=NewAccountForm:customerCreditCard
+REGISTRATION_LENGTH_MESSAGE //*[contains(normalize-space(text()), 'Value is less than allowable minimum of')]
+REGISTRATION_VERIFY_MESSAGE xpath=//*[normalize-space(text()) = 'passwordVerify']
+REGISTRATION_DUPLICATE_USER_MESSAGE xpath=//*[normalize-space(text()) = 'userName']
+LOGIN_USERNAME id=LoginForm:Username
+LOGIN_PASSWORD id=LoginForm:Password
+LOGIN_SUBMIT id=LoginForm:Login
+SHOP id=Shop
+SHOP_URL browse
+CART id=Cart
+SEARCH_FIELD id=SearchForm:Query
+SEARCH_SUBMIT id=SearchForm:Search
+SEARCH_RESULT_ITEM //table[@id='SearchResultsForm:SearchResultsTable']/tbody/tr
+SEARCH_RESULT_FIRST_ROW_LINK id=SearchResultsForm:SearchResultsTable:0:TitleLink
+SEARCH_RESULT_FIRST_ROW_CHECKBOX id=SearchResultsForm:SearchResultsTable:0:AddToCartCheckbox
+SEARCH_RESULT_UPDATE_BUTTON id=SearchResultsForm:SearchUpdateButton
+CART_TABLE_ROW_BY_NAME xpath\=//table[@id\="cartdetails\:CartDetailsForm\:CartItemsTable"]/tbody/tr[normalize-space(td[2]//text()) \= "{0}"]
+CART_TABLE_CHECKBOX_BY_NAME xpath\=//table[@id\="cartdetails\:CartDetailsForm\:CartItemsTable"]/tbody/tr[normalize-space(td[2]//text()) \= "{0}"]/td[1]/input
+CART_TABLE_UPDATE_BUTTON id=cartdetails:CartDetailsForm:UpdateCartButton
+CART_TABLE_ITEM //table[@id='cartdetails:CartDetailsForm:CartItemsTable']/tbody/tr
+CART_TABLE_QUANTITY_BY_ID id=cartdetails:CartDetailsForm:CartItemsTable:{0}:QuantityValueText
+CART_TABLE_PRICE_BY_ID id=cartdetails:CartDetailsForm:CartItemsTable:{0}:PriceValueText
+CART_TABLE_FIRST_ROW_QUANTITY id=cartdetails:CartDetailsForm:CartItemsTable:0:QuantityValueText
+CART_PURCHASE_BUTTON id=cartdetails:purchaseaction:PurchaseActionForm:PurchaseButton
+CART_SUBTOTAL id=cartdetails:CartSubtotalValue
+CART_CONFIRM_BUTTON id=orderdetail:ConfirmOrCancelForm:purchase
+CART_NOT_ENOUGH_COPIES_LEFT xpath\=//*[normalize-space(text()) \= "There were not enough copies of {0} in stock to fulfill your order."]
+CART_UNABLE_TO_COMPLETE_ORDER_MESSAGE xpath=//*[normalize-space(text()) = 'Your order could not be completed.']
+DVD_URL dvd
+ADMIN_URL admin/admin
Property changes on: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/dvdstore/src/org/jboss/seam/example/metawidget/dvd/test/selenium/metawidget-dvd.properties
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/build.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/build.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/build.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+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.
+-->
+<project name="metawidget.groovybooking.ftest.build" basedir="." default="build">
+ <property name="example.name" value="metawidget/groovybooking" />
+ <property name="jboss4.deploy.target" value="jbosswar.explode" />
+ <property name="jboss4.undeploy.target" value="jbosswar.unexplode" />
+ <property name="context.path" value="/seam-metawidget-groovybooking" />
+
+ <property name="loadPersistenceUnits" value="false" />
+
+ <target name="set.deploy.properties">
+ <propertyset id="jboss4.deploy.properties" />
+ <propertyset id="jboss5.deploy.properties">
+ <propertyref name="loadPersistenceUnits" id="loadPersistenceUnits" />
+ </propertyset>
+ </target>
+
+ <import file="../../build.xml" />
+
+</project>
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss4.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss4.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss4.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,36 @@
+
+ <!--
+ 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_jboss4">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/groovybooking/test/selenium/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_2/src/test/ftest/examples/metawidget/groovybooking/jboss4.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss5.xml
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss5.xml (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/jboss5.xml 2009-08-08 10:45:13 UTC (rev 11356)
@@ -0,0 +1,36 @@
+
+ <!--
+ 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_jboss5">
+ <parameter name="PROPERTY_FILE"
+ value="/org/jboss/seam/example/metawidget/groovybooking/test/selenium/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_2/src/test/ftest/examples/metawidget/groovybooking/jboss5.xml
___________________________________________________________________
Name: svn:executable
+ *
Added: branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/selenium/metawidget-groovybooking.properties
===================================================================
--- branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/selenium/metawidget-groovybooking.properties (rev 0)
+++ branches/community/Seam_2_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/selenium/metawidget-groovybooking.properties 2009-08-08 10:45:13 UTC (rev 11356)
@@ -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_2/src/test/ftest/examples/metawidget/groovybooking/src/org/jboss/seam/example/metawidget/groovybooking/test/selenium/metawidget-groovybooking.properties
___________________________________________________________________
Name: svn:executable
+ *
15 years, 4 months
Seam SVN: r11355 - in branches/enterprise/JBPAPP_5_0: src/test/ftest and 1 other directories.
by seam-commits@lists.jboss.org
Author: jharting
Date: 2009-08-07 09:03:06 -0400 (Fri, 07 Aug 2009)
New Revision: 11355
Added:
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-ear.xml
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-war.xml
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-ear.xml
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-war.xml
Removed:
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed.xml
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded.xml
Modified:
branches/enterprise/JBPAPP_5_0/build.xml
branches/enterprise/JBPAPP_5_0/src/test/ftest/build.xml
branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml
Log:
Changes for EAP5 testsuite
Modified: branches/enterprise/JBPAPP_5_0/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build.xml 2009-08-07 10:05:11 UTC (rev 11354)
+++ branches/enterprise/JBPAPP_5_0/build.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -2,7 +2,7 @@
<project name="Seam" default="build" basedir="." xmlns:artifact="urn:maven-artifact-ant">
<!-- Check that we are using Ant 1.7.0. Not using <antversion> as it wasn't available until 1.7.0. -->
-<!-- <condition property="compatible.ant">
+ <!-- <condition property="compatible.ant">
<contains string="${ant.version}" substring="1.7.0"/>
</condition>
@@ -11,7 +11,7 @@
<!-- Name of project and version, used to create filenames -->
<property name="Name" value="JBoss Seam" />
<property name="name" value="jboss-seam" />
-
+
<!-- Build resources -->
<property name="seam.dir" value="${basedir}" />
<import file="${seam.dir}/build/common.build.xml" />
@@ -84,7 +84,7 @@
<property name="dist.build.dir" value="${dist.dir}/build" />
<property name="dist.seamgen.dir" value="${dist.dir}/seam-gen" />
<property name="dist.ui.api.dir" value="${dist.dir}/doc/ui" />
-
+
<condition property="in.dist.dir">
<equals arg1="${basedir}" arg2="${dist.dir}"/>
</condition>
@@ -141,6 +141,16 @@
<include name="**/*.png" />
</patternset>
+ <path id="eap.general.path">
+ <path path="${seam.dir}/bootstrap" />
+ <fileset dir="${seam.dir}/lib/test">
+ <include name="*.jar" />
+ </fileset>
+ <fileset dir="${seam.dir}/lib">
+ <include name="*.jar" />
+ </fileset>
+ </path>
+
<!-- ########################## BUILD TARGETS ##########################-->
<target name="init" depends="initpoms" />
@@ -156,7 +166,7 @@
<delete dir="${doc.ref.dir}/target" quiet="${quietclean}"/>
<cleanexample name="integration" path="${seam.dir}/src/test/integration" message="" />
</target>
-
+
<target name="clean.lib" if="mavenized.property">
<delete dir="${lib.dir}" quiet="${quietclean}" />
</target>
@@ -174,7 +184,7 @@
<init classesdir="${classes.core.dir}" srcdir="${src.core.dir}" modulename="core" pom="${core.pom}" />
<inlineDependencies id="jbosscache2" scope="compile">
<dependency groupId="org.jboss.cache" artifactId="jbosscache-core" version="2.2.0.CR6" />
- </inlineDependencies>
+ </inlineDependencies>
</target>
<target name="antlr" depends="initcore" description="Generate ANTLR parser">
@@ -185,27 +195,27 @@
<antlrtask target="seam-text.g" outputdirectory="${src.core.dir}/org/jboss/seam/text">
<classpath refid="compile.core.path" />
</antlrtask>
- <move todir="${src.core.dir}/org/jboss/seam/text">
- <fileset dir="${src.core.dir}/org/jboss/seam/text">
- <include name="*.txt"/>
- </fileset>
- <mapper type="glob" from="*" to="*-bak"/>
- </move>
+ <move todir="${src.core.dir}/org/jboss/seam/text">
+ <fileset dir="${src.core.dir}/org/jboss/seam/text">
+ <include name="*.txt"/>
+ </fileset>
+ <mapper type="glob" from="*" to="*-bak"/>
+ </move>
</target>
<target name="compilecore" depends="initcore,select-compiler,antlr">
<compile classesdir="${classes.core.dir}" srcdir="${src.core.dir}" classpath="compile.core.path">
- <exclude name="org/jboss/seam/cache/JbossCache2Provider*" />
- </compile>
+ <exclude name="org/jboss/seam/cache/JbossCache2Provider*" />
+ </compile>
<!-- Fiddle to make sure we compile the JBossCache2 stuff with JBossCache2" -->
<path id="compile.core-jbosscache2.path">
- <path refid="compile.jbosscache2.path" />
- <path refid="compile.core.path" />
- <fileset dir="${classes.core.dir}" />
- </path>
+ <path refid="compile.jbosscache2.path" />
+ <path refid="compile.core.path" />
+ <fileset dir="${classes.core.dir}" />
+ </path>
<compile classesdir="${classes.core.dir}" srcdir="${src.core.dir}" classpath="compile.core-jbosscache2.path">
- <include name="org/jboss/seam/cache/JbossCache2Provider*" />
- </compile>
+ <include name="org/jboss/seam/cache/JbossCache2Provider*" />
+ </compile>
</target>
<target name="jarcore" depends="compilecore" description="Build the distribution .jar file using M2 dependency management">
@@ -289,8 +299,8 @@
<target name="jardebug" depends="compiledebug" description="Build the distribution .jar file for the Debug package">
<archive classesdir="${classes.debug.dir}" module="jboss-seam-debug" pom="${debug.pom}" srcdir="${src.debug.dir}"/>
</target>
-
+
<!-- ########################### GEN TARGETS ###########################-->
<target name="initgen" depends="init">
@@ -496,12 +506,12 @@
<include name="**/*.jar" />
</fileset>
</copy>
-
+
<copy todir="${dist.src.test.dir}">
- <fileset dir="${src.test.dir}">
- <include name="**/*.jar" />
- </fileset>
- </copy>
+ <fileset dir="${src.test.dir}">
+ <include name="**/*.jar" />
+ </fileset>
+ </copy>
</target>
@@ -514,9 +524,9 @@
</target>
<target name="copyexamples">
- <ant dir="examples" target="copyextradependencies" inheritall="false">
- <property name="lib.dir" value="${dist.lib.dir}"/>
- </ant>
+ <ant dir="examples" target="copyextradependencies" inheritall="false">
+ <property name="lib.dir" value="${dist.lib.dir}"/>
+ </ant>
<copy todir="${dist.dir}/examples">
<fileset dir="${basedir}/examples">
<include name="booking/**/*" />
@@ -572,13 +582,13 @@
</copy>
</target>
- <target name="extras" depends="dependencyReport">
+ <target name="extras" depends="dependencyReport">
<copy file="lgpl.txt" todir="${dist.dir}" />
<copy file="copyright.txt" todir="${dist.dir}" />
<propertyfile file="${dist.dir}/build.properties" comment="See build/sample.build.properties for properties you might want to set">
<entry key="tomcat.home" value="/var/lib/tomcat5" />
<entry key="jboss.home" value="/var/lib/jbossas" />
- <entry key="mavenized" value="false" />
+ <entry key="mavenized" value="false" />
<entry key="qualifier" value="${qualifier}" />
</propertyfile>
<copy file="build.xml" todir="${dist.dir}" />
@@ -587,14 +597,14 @@
<copy file="seam.bat" todir="${dist.dir}" />
<copy todir="${dist.dir}">
<fileset dir="${basedir}">
- <include name="*migration.txt"/>
- </fileset>
- </copy>
- <copy todir="${dist.dir}/extras">
- <fileset dir="${basedir}/extras">
- <include name="**/*" />
- </fileset>
- </copy>
+ <include name="*migration.txt"/>
+ </fileset>
+ </copy>
+ <copy todir="${dist.dir}/extras">
+ <fileset dir="${basedir}/extras">
+ <include name="**/*" />
+ </fileset>
+ </copy>
<replace file="${dist.dir}/build.xml">
<replacetoken>
<![CDATA[${name}-${complete.version}]]>
@@ -663,35 +673,35 @@
<!-- ########################### TEST TARGETS ###########################-->
-
+
<target name="unittest" depends="unittestcore, unittestmail, unittestexcel" description="Run the Unit tests" />
<target name="compiletest" depends="inittestcore,select-compiler,antlr">
- <compile classesdir="${classes.test.dir}" srcdir="${src.unit.test.dir}" classpath="test.compile.path" />
- </target>
-
- <target name="inittestcore" depends="build">
- <init classesdir="${classes.test.dir}" srcdir="${src.unit.test.dir}" modulename="core" pom="${core.pom}" scope="test" message="" />
- <copy todir="${classes.test.core.dir}">
- <fileset dir="${classes.core.dir}" includes="**/*.*" />
- </copy>
- <inlineDependencies scope="compile" id="remoting">
- <dependency groupId="org.jboss.seam" artifactId="jboss-seam-remoting" version="${complete.version}" />
- </inlineDependencies>
- <path id="test.compile.path">
- <path refid="test.core.path" />
- <path path="${classes.test.core.dir}" />
- <path refid="compile.remoting.path" />
- </path>
- </target>
+ <compile classesdir="${classes.test.dir}" srcdir="${src.unit.test.dir}" classpath="test.compile.path" />
+ </target>
+ <target name="inittestcore" depends="build">
+ <init classesdir="${classes.test.dir}" srcdir="${src.unit.test.dir}" modulename="core" pom="${core.pom}" scope="test" message="" />
+ <copy todir="${classes.test.core.dir}">
+ <fileset dir="${classes.core.dir}" includes="**/*.*" />
+ </copy>
+ <inlineDependencies scope="compile" id="remoting">
+ <dependency groupId="org.jboss.seam" artifactId="jboss-seam-remoting" version="${complete.version}" />
+ </inlineDependencies>
+ <path id="test.compile.path">
+ <path refid="test.core.path" />
+ <path path="${classes.test.core.dir}" />
+ <path refid="compile.remoting.path" />
+ </path>
+ </target>
+
<target name="unittestcore" depends="inittestcore,compiletest,getemma">
- <inlineDependencies scope="test" id="thirdparty-hibernate">
- <dependency groupId="org.jboss.seam.embedded" artifactId="thirdparty-all" version="${embedded.version}" />
- </inlineDependencies>
+ <inlineDependencies scope="test" id="thirdparty-hibernate">
+ <dependency groupId="org.jboss.seam.embedded" artifactId="thirdparty-all" version="${embedded.version}" />
+ </inlineDependencies>
<taskdef resource="testngtasks" classpathref="test.core.path" />
<testng outputdir="${test.dir}">
<jvmarg value="-Demma.coverage.out.file=${coverage.ec}" />
@@ -709,72 +719,72 @@
</testng>
<echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
</target>
-
- <target name="inittestmail" depends="build">
- <init classesdir="${classes.mail.test.dir}" srcdir="${src.mail.unit.test.dir}" modulename="mail" pom="${mail.pom}" scope="test" message="" />
- <path id="test.mail.compile.path">
- <path refid="test.mail.path" />
- <path path="${classes.mail.test.dir}" />
- <path location="${classes.mail.dir}" />
- </path>
- </target>
-
- <target name="compiletestmail" depends="inittestmail,select-compiler,antlr">
- <compile classesdir="${classes.mail.test.dir}" srcdir="${src.mail.unit.test.dir}" classpath="test.mail.compile.path" />
- </target>
-
+
+ <target name="inittestmail" depends="build">
+ <init classesdir="${classes.mail.test.dir}" srcdir="${src.mail.unit.test.dir}" modulename="mail" pom="${mail.pom}" scope="test" message="" />
+ <path id="test.mail.compile.path">
+ <path refid="test.mail.path" />
+ <path path="${classes.mail.test.dir}" />
+ <path location="${classes.mail.dir}" />
+ </path>
+ </target>
+
+ <target name="compiletestmail" depends="inittestmail,select-compiler,antlr">
+ <compile classesdir="${classes.mail.test.dir}" srcdir="${src.mail.unit.test.dir}" classpath="test.mail.compile.path" />
+ </target>
+
<target name="unittestmail" depends="inittestmail,compiletestmail,getemma">
- <taskdef resource="testngtasks" classpathref="test.mail.path" />
- <testng outputdir="${test.dir}">
- <jvmarg value="-Demma.coverage.out.file=${coverage.ec}" />
- <jvmarg line="-Djava.awt.headless=true" />
- <classpath>
- <path path="${classes.mail.test.dir}" />
- <path location="${classes.mail.dir}" />
- <path refid="runtime.emma.path" />
- <path refid="test.mail.path" />
- </classpath>
- <xmlfileset dir="${classes.mail.test.dir}" includes="**/testng.xml" />
- </testng>
- <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
- </target>
+ <taskdef resource="testngtasks" classpathref="test.mail.path" />
+ <testng outputdir="${test.dir}">
+ <jvmarg value="-Demma.coverage.out.file=${coverage.ec}" />
+ <jvmarg line="-Djava.awt.headless=true" />
+ <classpath>
+ <path path="${classes.mail.test.dir}" />
+ <path location="${classes.mail.dir}" />
+ <path refid="runtime.emma.path" />
+ <path refid="test.mail.path" />
+ </classpath>
+ <xmlfileset dir="${classes.mail.test.dir}" includes="**/testng.xml" />
+ </testng>
+ <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
+ </target>
- <target name="inittestexcel" depends="build">
- <init classesdir="${classes.excel.test.dir}" srcdir="${src.excel.unit.test.dir}" modulename="excel" pom="${excel.pom}" scope="test" message="" />
- <path id="test.excel.compile.path">
- <path refid="test.excel.path" />
- <path path="${classes.excel.test.dir}" />
- <path location="${classes.excel.dir}" />
- </path>
- </target>
-
- <target name="compiletestexcel" depends="inittestexcel,select-compiler,antlr">
- <compile classesdir="${classes.excel.test.dir}" srcdir="${src.excel.unit.test.dir}" classpath="test.excel.compile.path" />
- </target>
-
+ <target name="inittestexcel" depends="build">
+ <init classesdir="${classes.excel.test.dir}" srcdir="${src.excel.unit.test.dir}" modulename="excel" pom="${excel.pom}" scope="test" message="" />
+ <path id="test.excel.compile.path">
+ <path refid="test.excel.path" />
+ <path path="${classes.excel.test.dir}" />
+ <path location="${classes.excel.dir}" />
+ </path>
+ </target>
+
+ <target name="compiletestexcel" depends="inittestexcel,select-compiler,antlr">
+ <compile classesdir="${classes.excel.test.dir}" srcdir="${src.excel.unit.test.dir}" classpath="test.excel.compile.path" />
+ </target>
+
<target name="unittestexcel" depends="inittestexcel,compiletestexcel,getemma">
- <taskdef resource="testngtasks" classpathref="test.excel.path" />
- <testng outputdir="${test.dir}">
- <jvmarg value="-Demma.coverage.out.file=${coverage.ec}" />
- <jvmarg line="-Djava.awt.headless=true" />
- <classpath>
- <path path="${classes.excel.test.dir}" />
- <path location="${classes.excel.dir}" />
- <path refid="runtime.emma.path" />
- <path refid="test.excel.path" />
- </classpath>
- <xmlfileset dir="${classes.excel.test.dir}" includes="**/testng.xml" />
- </testng>
- <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
- </target>
-
+ <taskdef resource="testngtasks" classpathref="test.excel.path" />
+ <testng outputdir="${test.dir}">
+ <jvmarg value="-Demma.coverage.out.file=${coverage.ec}" />
+ <jvmarg line="-Djava.awt.headless=true" />
+ <classpath>
+ <path path="${classes.excel.test.dir}" />
+ <path location="${classes.excel.dir}" />
+ <path refid="runtime.emma.path" />
+ <path refid="test.excel.path" />
+ </classpath>
+ <xmlfileset dir="${classes.excel.test.dir}" includes="**/testng.xml" />
+ </testng>
+ <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
+ </target>
+
<target name="test" depends="unittest, integrationtest" description="Run Seam Unit Tests and the Seam (core) Integration Tests"/>
-
+
<target name="integrationtest" description="Run the Seam (core) Inteegration Tests">
<testexample name="integration" path="${seam.dir}/src/test/integration" message=""/>
</target>
-
+
<!-- Deprecated -->
<target name="testcore" depends="test" />
@@ -810,11 +820,11 @@
<filter excludes="org.jboss.seam.annotations.*" />
<filter excludes="org.jboss.seam.test.*" />
<filter excludes="*.package-info.java" />
- <filter excludes="org.jboss.seam.text.*" />
+ <filter excludes="org.jboss.seam.text.*" />
</instr>
</emma>
</target>
-
+
<target name="instrumentmail" depends="compilemail,getemma">
<taskdef resource="emma_ant.properties" classpathref="runtime.emma.path" />
<mkdir dir="${coverage.dir}/mail" />
@@ -827,7 +837,7 @@
<!-- Deprecated -->
<target name="coverage" depends="instrumentcore, instrumentmail, testall, coveragereport" />
-
+
<target name="coveragereport" depends="getemma" description="Create the coverage report">
<taskdef resource="emma_ant.properties" classpathref="runtime.emma.path" />
<emma>
@@ -843,7 +853,7 @@
</emma>
<echo>Code coverage report for core classes available at ${report.dir}/coverage.html</echo>
</target>
-
+
<target name="coverageall" depends="instrumentcore, instrumentmail, testall, coveragereport" description="Run all unit tests with coverage" />
@@ -917,10 +927,10 @@
<attribute name="Seam-Version" value="${complete.version}" />
<attribute name="Implementation-Version" value="${complete.version}" />
<attribute name="Specification-Version" value="${complete.version}" />
- <attribute name="Specification-Title" value="Seam @{module}" />
- <attribute name="Specification-Vendor" value="JBoss" />
- <attribute name="Implementation-Title" value="Seam @{module}" />
- <attribute name="Implementation-Vendor" value="JBoss" />
+ <attribute name="Specification-Title" value="Seam @{module}" />
+ <attribute name="Specification-Vendor" value="JBoss" />
+ <attribute name="Implementation-Title" value="Seam @{module}" />
+ <attribute name="Implementation-Vendor" value="JBoss" />
</manifest>
</jar>
<install jar="@{outputdir}/(a){module}.jar" pom="@{pom}">
@@ -988,16 +998,16 @@
<callExample path="@{path}" target="unexplode" />
</sequential>
</macrodef>
-
+
<macrodef name="undeployexampleNoTomcat">
- <attribute name="name" />
- <attribute name="path" default="examples/@{name}" />
- <sequential>
- <echo>Undeploying @{name} example</echo>
- <callExample path="@{path}" target="undeploy" />
- <callExample path="@{path}" target="unexplode" />
- </sequential>
- </macrodef>
+ <attribute name="name" />
+ <attribute name="path" default="examples/@{name}" />
+ <sequential>
+ <echo>Undeploying @{name} example</echo>
+ <callExample path="@{path}" target="undeploy" />
+ <callExample path="@{path}" target="unexplode" />
+ </sequential>
+ </macrodef>
<macrodef name="testexample">
<attribute name="name" />
@@ -1008,7 +1018,7 @@
<callExample path="@{path}" target="test" />
</sequential>
</macrodef>
-
+
<macrodef name="callExample">
<attribute name="path" />
<attribute name="target" />
@@ -1047,11 +1057,11 @@
<dependenciesWithSources id="remoting" scope="compile" pom="${remoting.pom}" />
<dependenciesWithSources id="ui" scope="compile" pom="${ui.pom}" />
</target>
-
+
<target name="eclipseclasspath" depends="init, jargen,antlr" description="Update eclipse classpath">
<path id="seam-gen.path" path="${seam.dir}/lib/gen/jboss-seam-gen.jar" />
- <taskdef name="eclipseClasspath"
+ <taskdef name="eclipseClasspath"
classname="org.jboss.seam.tool.EclipseClasspathTask"
classpathref="seam-gen.path"/>
<dependencies id="core" scope="compile" pom="${core.pom}" />
@@ -1076,6 +1086,71 @@
</eclipseClasspath>
</target>
+ <target name="eap.testall" depends="eap.compiletests,eap.test,eap.testmail,eap.testexcel,integrationtest,testexamples" />
+ <target name="eap.test">
+ <taskdef resource="testngtasks" classpathref="eap.general.path" />
+ <testng outputdir="${test.dir}">
+ <jvmarg line="-Djava.awt.headless=true" />
+ <classpath>
+ <path path="${classes.test.core.dir}" />
+ <path path="${classes.test.dir}" />
+ <path refid="eap.general.path" />
+ </classpath>
+ <xmlfileset dir="${classes.test.dir}" includes="**/testng.xml" />
+ </testng>
+ <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
+ </target>
+ <target name="eap.testmail">
+ <taskdef resource="testngtasks" classpathref="eap.general.path" />
+ <testng outputdir="${test.dir}">
+ <jvmarg line="-Djava.awt.headless=true" />
+ <classpath>
+ <path path="${classes.mail.test.dir}" />
+ <path refid="eap.general.path" />
+ </classpath>
+ <xmlfileset dir="${classes.mail.test.dir}" includes="**/testng.xml" />
+ </testng>
+ <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
+ </target>
+
+ <target name="eap.testexcel">
+ <taskdef resource="testngtasks" classpathref="eap.general.path" />
+ <testng outputdir="${test.dir}">
+ <jvmarg line="-Djava.awt.headless=true" />
+ <classpath>
+ <path path="${classes.excel.test.dir}" />
+ <path refid="eap.general.path" />
+ </classpath>
+ <xmlfileset dir="${classes.excel.test.dir}" includes="**/testng.xml" />
+ </testng>
+ <echo>You can increase the logging by editing bootstrap/log4j.xml</echo>
+ </target>
+
+ <target name="eap.compiletests">
+ <mkdir dir="${classes.test.dir}" />
+ <mkdir dir="${classes.mail.test.dir}" />
+ <mkdir dir="${classes.excel.test.dir}" />
+ <copy todir="${classes.test.dir}">
+ <fileset dir="${src.unit.test.dir}">
+ <patternset refid="meta.files" />
+ </fileset>
+ </copy>
+ <copy todir="${classes.mail.test.dir}">
+ <fileset dir="${src.mail.unit.test.dir}">
+ <patternset refid="meta.files" />
+ </fileset>
+ </copy>
+ <copy todir="${classes.excel.test.dir}">
+ <fileset dir="${src.excel.unit.test.dir}">
+ <patternset refid="meta.files" />
+ </fileset>
+ </copy>
+ <compile classesdir="${classes.test.dir}" srcdir="${src.unit.test.dir}" classpath="eap.general.path" />
+ <compile classesdir="${classes.mail.test.dir}" srcdir="${src.mail.unit.test.dir}" classpath="eap.general.path" />
+ <compile classesdir="${classes.excel.test.dir}" srcdir="${src.excel.unit.test.dir}" classpath="eap.general.path" />
+ </target>
+
+
</project>
Modified: branches/enterprise/JBPAPP_5_0/src/test/ftest/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/build.xml 2009-08-07 10:05:11 UTC (rev 11354)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/build.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -42,36 +42,53 @@
</fileset>
</path>
- <target name="testall" description="Run functional testsuite based on container property">
- <fail unless="container">Please set container property.</fail>
- <antcall target="testall.${container}" />
- </target>
-
- <target name="testall.jboss5" description="Run functional testsuite for JBoss 5">
+ <target name="testall.1" description="Run functional testsuite for JBoss 5">
<property name="container" value="jboss5" />
- <antcall target="start.container.before.suite" />
<antcall target="start.selenium.server" />
- <!-- Execute tests for all examples jboss-->
<testexample name="blog" />
<testexample name="booking" />
<testexample name="drools" />
<testexample name="dvdstore" />
<testexample name="contactlist" />
+ <antcall target="stop.selenium.server" />
+ </target>
+
+ <target name="testall.2" description="Run functional testsuite for JBoss 5">
+ <property name="container" value="jboss5" />
+ <antcall target="start.selenium.server" />
<testexample name="excel" />
<testexample name="groovybooking" />
<testexample name="hibernate" />
<testexample name="itext" />
<testexample name="jee5/booking" />
+ <antcall target="stop.selenium.server" />
+ </target>
+
+ <target name="testall.3" description="Run functional testsuite for JBoss 5">
+ <property name="container" value="jboss5" />
+ <antcall target="start.selenium.server" />
<testexample name="jpa" />
<testexample name="mail" />
<testexample name="messages" />
<testexample name="nestedbooking" />
<testexample name="numberguess" />
+ <antcall target="stop.selenium.server" />
+ </target>
+
+ <target name="testall.4" description="Run functional testsuite for JBoss 5">
+ <property name="container" value="jboss5" />
+ <antcall target="start.selenium.server" />
<testexample name="openid" />
<testexample name="quartz" />
<testexample name="registration" />
<testexample name="remoting/chatroom" />
<testexample name="seambay" />
+ <antcall target="stop.selenium.server" />
+ </target>
+
+ <target name="testall.5" description="Run functional testsuite for JBoss 5">
+ <property name="container" value="jboss5" />
+ <antcall target="start.selenium.server" />
<testexample name="seampay" />
<testexample name="seamspace" />
<testexample name="spring" />
Modified: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml 2009-08-07 10:05:11 UTC (rev 11354)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/build.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -85,13 +85,22 @@
<antcall target="seam-gen.richfaces.testsuite.deployed" />
</target>
- <target name="seam-gen.richfaces.testsuite.exploded" depends="build">
- <run.selenium.test suite="richfaces-exploded" />
+ <target name="seam-gen.richfaces.testsuite.exploded.ear" depends="build">
+ <run.selenium.test suite="richfaces-exploded-ear" />
</target>
- <target name="seam-gen.richfaces.testsuite.deployed" depends="build">
- <run.selenium.test suite="richfaces-deployed" />
+ <target name="seam-gen.richfaces.testsuite.exploded.war" depends="build">
+ <run.selenium.test suite="richfaces-exploded-war" />
</target>
+
+ <target name="seam-gen.richfaces.testsuite.deployed.ear" depends="build">
+ <run.selenium.test suite="richfaces-deployed-ear" />
+ </target>
+
+ <target name="seam-gen.richfaces.testsuite.deployed.war" depends="build">
+ <run.selenium.test suite="richfaces-deployed-war" />
+ </target>
+
<target name="seam-gen.smoke.testsuite" depends="build" description="Run smoke testsuite">
<run.selenium.test suite="smoke" />
</target>
Added: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-ear.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-ear.xml (rev 0)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-ear.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="seam-gen RichFaces suite" parallel="false" verbose="2">
+ <listeners>
+ <listener
+ class-name="org.jboss.seam.test.functional.seamgen.utils.SeleniumTestListener" />
+ </listeners>
+ <parameter name="suffix" value="001" />
+ <parameter name="explode" value="false" />
+ <test name="RichFaces Ear Test">
+ <parameter name="type" value="ear" />
+ <classes>
+ <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
+ </classes>
+ </test>
+</suite>
Added: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-war.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-war.xml (rev 0)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed-war.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="seam-gen RichFaces suite" parallel="false" verbose="2">
+ <listeners>
+ <listener
+ class-name="org.jboss.seam.test.functional.seamgen.utils.SeleniumTestListener" />
+ </listeners>
+ <parameter name="suffix" value="001" />
+ <parameter name="explode" value="false" />
+ <test name="RichFaces War Test">
+ <parameter name="type" value="war" />
+ <classes>
+ <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
+ </classes>
+ </test>
+</suite>
Deleted: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed.xml 2009-08-07 10:05:11 UTC (rev 11354)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-deployed.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -1,34 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-<suite name="seam-gen RichFaces suite" parallel="false" verbose="2">
- <listeners>
- <listener
- class-name="org.jboss.seam.test.functional.seamgen.utils.SeleniumTestListener" />
- </listeners>
- <parameter name="suffix" value="001" />
- <parameter name="explode" value="false" />
- <test name="RichFaces Ear Test">
- <parameter name="type" value="ear" />
- <classes>
- <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
- <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
- <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
- <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
- <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
- </classes>
- </test>
- <test name="RichFaces War Test">
- <parameter name="type" value="war" />
- <classes>
- <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
- <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
- <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
- <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
- <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
- </classes>
- </test>
-</suite>
Added: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-ear.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-ear.xml (rev 0)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-ear.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="seam-gen RichFaces suite" parallel="false" verbose="2">
+ <listeners>
+ <listener
+ class-name="org.jboss.seam.test.functional.seamgen.utils.SeleniumTestListener" />
+ </listeners>
+ <parameter name="suffix" value="001" />
+ <test name="RichFaces exploded Ear Test">
+ <parameter name="type" value="ear" />
+ <classes>
+ <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
+ <class
+ name="org.jboss.seam.test.functional.seamgen.HotDeploymentStaticTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
+ </classes>
+ </test>
+</suite>
Added: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-war.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-war.xml (rev 0)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded-war.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
+<suite name="seam-gen RichFaces suite" parallel="false" verbose="2">
+ <listeners>
+ <listener
+ class-name="org.jboss.seam.test.functional.seamgen.utils.SeleniumTestListener" />
+ </listeners>
+ <parameter name="suffix" value="001" />
+ <test name="RichFaces exploded War Test">
+ <parameter name="type" value="war" />
+ <classes>
+ <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
+ <class
+ name="org.jboss.seam.test.functional.seamgen.HotDeploymentNewFormTest" />
+ <class
+ name="org.jboss.seam.test.functional.seamgen.HotDeploymentStaticTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
+ <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
+ </classes>
+ </test>
+</suite>
Deleted: branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded.xml 2009-08-07 10:05:11 UTC (rev 11354)
+++ branches/enterprise/JBPAPP_5_0/src/test/ftest/seamgen/richfaces-exploded.xml 2009-08-07 13:03:06 UTC (rev 11355)
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE suite SYSTEM "http://beust.com/testng/testng-1.0.dtd" >
-<suite name="seam-gen RichFaces suite" parallel="false" verbose="2">
- <listeners>
- <listener
- class-name="org.jboss.seam.test.functional.seamgen.utils.SeleniumTestListener" />
- </listeners>
- <parameter name="suffix" value="001" />
- <test name="RichFaces exploded Ear Test">
- <parameter name="type" value="ear" />
- <classes>
- <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
- <class
- name="org.jboss.seam.test.functional.seamgen.HotDeploymentStaticTest" />
- <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
- <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
- <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
- <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
- </classes>
- </test>
- <test name="RichFaces exploded War Test">
- <parameter name="type" value="war" />
- <classes>
- <class name="org.jboss.seam.test.functional.seamgen.NewProjectTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewActionTest" />
- <class name="org.jboss.seam.test.functional.seamgen.NewFormTest" />
- <class
- name="org.jboss.seam.test.functional.seamgen.HotDeploymentNewFormTest" />
- <class
- name="org.jboss.seam.test.functional.seamgen.HotDeploymentStaticTest" />
- <class name="org.jboss.seam.test.functional.seamgen.PersonTest" />
- <class name="org.jboss.seam.test.functional.seamgen.VehicleTest" />
- <class name="org.jboss.seam.test.functional.seamgen.UserTest" />
- <class name="org.jboss.seam.test.functional.seamgen.RoleTest" />
- </classes>
- </test>
-</suite>
15 years, 4 months
Seam SVN: r11354 - branches/enterprise/JBPAPP_5_0/build.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-08-07 06:05:11 -0400 (Fri, 07 Aug 2009)
New Revision: 11354
Modified:
branches/enterprise/JBPAPP_5_0/build/root.pom.xml
Log:
JBPAPP-2393
Modified: branches/enterprise/JBPAPP_5_0/build/root.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2009-08-07 07:56:09 UTC (rev 11353)
+++ branches/enterprise/JBPAPP_5_0/build/root.pom.xml 2009-08-07 10:05:11 UTC (rev 11354)
@@ -243,6 +243,12 @@
<groupId>org.jbpm.jbpm3</groupId>
<artifactId>jbpm-jpdl</artifactId>
<version>3.2.5.SP5</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.hibernate</groupId>
+ <artifactId>hibernate</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
<dependency>
15 years, 4 months
Seam SVN: r11353 - in branches/enterprise/JBPAPP_5_0/examples/seamspace: src/org/jboss/seam/example/seamspace and 1 other directories.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-08-07 03:56:09 -0400 (Fri, 07 Aug 2009)
New Revision: 11353
Modified:
branches/enterprise/JBPAPP_5_0/examples/seamspace/resources/WEB-INF/pages.xml
branches/enterprise/JBPAPP_5_0/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java
branches/enterprise/JBPAPP_5_0/examples/seamspace/view/profile.xhtml
Log:
JBPAPP-2375
Modified: branches/enterprise/JBPAPP_5_0/examples/seamspace/resources/WEB-INF/pages.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/seamspace/resources/WEB-INF/pages.xml 2009-08-07 05:36:10 UTC (rev 11352)
+++ branches/enterprise/JBPAPP_5_0/examples/seamspace/resources/WEB-INF/pages.xml 2009-08-07 07:56:09 UTC (rev 11353)
@@ -98,7 +98,7 @@
<page view-id="/friendrequest.xhtml">
<restrict>#{identity.loggedIn}</restrict>
<param name="name" value="#{selectedMember.memberName}"/>
- <navigation from-action="#{friend.saveRequest}">
+ <navigation from-action="#{friendAction.saveRequest}">
<redirect view-id="/profile.xhtml">
<param name="name" value="#{friendRequest.member.memberName}"/>
</redirect>
Modified: branches/enterprise/JBPAPP_5_0/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java 2009-08-07 05:36:10 UTC (rev 11352)
+++ branches/enterprise/JBPAPP_5_0/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java 2009-08-07 07:56:09 UTC (rev 11353)
@@ -43,7 +43,7 @@
@In
private EntityManager entityManager;
- @Factory("friendComment") @Begin
+ @Begin
public void createComment()
{
try
@@ -100,7 +100,8 @@
public void saveRequest()
{
friendRequest.getMember().getFriends().add(friendRequest);
- entityManager.persist(friendRequest);
+ entityManager.persist(friendRequest);
+ FacesMessages.instance().add("Friend request sent");
}
@Remove @Destroy
Modified: branches/enterprise/JBPAPP_5_0/examples/seamspace/view/profile.xhtml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/seamspace/view/profile.xhtml 2009-08-07 05:36:10 UTC (rev 11352)
+++ branches/enterprise/JBPAPP_5_0/examples/seamspace/view/profile.xhtml 2009-08-07 07:56:09 UTC (rev 11353)
@@ -78,7 +78,9 @@
<br class="clear"/>
<s:span rendered="#{selectedMember.memberId != authenticatedMember.memberId and s:hasPermission(selectedMember, 'createFriendRequest')}">
- [<s:link view="/friendrequest.seam" value="Send a friend request" propagation="none"/>]
+ [<s:link view="/friendrequest.seam" action="#{friendAction.createRequest}" value="Send a friend request">
+ <f:param name="name" value="#{selectedMember.memberName}"/>
+ </s:link>]
</s:span>
</s:div>
15 years, 4 months
Seam SVN: r11352 - in branches/community/Seam_2_2/examples/seamspace: src/org/jboss/seam/example/seamspace and 1 other directories.
by seam-commits@lists.jboss.org
Author: shane.bryzak(a)jboss.com
Date: 2009-08-07 01:36:10 -0400 (Fri, 07 Aug 2009)
New Revision: 11352
Modified:
branches/community/Seam_2_2/examples/seamspace/resources/WEB-INF/pages.xml
branches/community/Seam_2_2/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java
branches/community/Seam_2_2/examples/seamspace/view/profile.xhtml
Log:
fixed exception when clicking friend request link
Modified: branches/community/Seam_2_2/examples/seamspace/resources/WEB-INF/pages.xml
===================================================================
--- branches/community/Seam_2_2/examples/seamspace/resources/WEB-INF/pages.xml 2009-08-06 22:26:48 UTC (rev 11351)
+++ branches/community/Seam_2_2/examples/seamspace/resources/WEB-INF/pages.xml 2009-08-07 05:36:10 UTC (rev 11352)
@@ -95,10 +95,10 @@
</navigation>
</page>
- <page view-id="/friendrequest.xhtml">
+ <page view-id="/friendrequest.xhtml">
<restrict>#{identity.loggedIn}</restrict>
<param name="name" value="#{selectedMember.memberName}"/>
- <navigation from-action="#{friend.saveRequest}">
+ <navigation from-action="#{friendAction.saveRequest}">
<redirect view-id="/profile.xhtml">
<param name="name" value="#{friendRequest.member.memberName}"/>
</redirect>
Modified: branches/community/Seam_2_2/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java
===================================================================
--- branches/community/Seam_2_2/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java 2009-08-06 22:26:48 UTC (rev 11351)
+++ branches/community/Seam_2_2/examples/seamspace/src/org/jboss/seam/example/seamspace/FriendAction.java 2009-08-07 05:36:10 UTC (rev 11352)
@@ -73,7 +73,7 @@
entityManager.persist(friendComment);
}
- @Factory("friendRequest") @Begin
+ @Begin
public void createRequest()
{
try
@@ -101,6 +101,7 @@
{
friendRequest.getMember().getFriends().add(friendRequest);
entityManager.persist(friendRequest);
+ FacesMessages.instance().add("Friend request sent");
}
@Remove @Destroy
Modified: branches/community/Seam_2_2/examples/seamspace/view/profile.xhtml
===================================================================
--- branches/community/Seam_2_2/examples/seamspace/view/profile.xhtml 2009-08-06 22:26:48 UTC (rev 11351)
+++ branches/community/Seam_2_2/examples/seamspace/view/profile.xhtml 2009-08-07 05:36:10 UTC (rev 11352)
@@ -78,7 +78,7 @@
<br class="clear"/>
<s:span rendered="#{selectedMember.memberId != authenticatedMember.memberId and s:hasPermission(selectedMember, 'createFriendRequest')}">
- [<s:link view="/friendrequest.seam" value="Send a friend request" propagation="none"/>]
+ [<s:link view="/friendrequest.seam" action="#{friendAction.createRequest}" value="Send a friend request"><f:param name="name" value="#{selectedMember.memberName}"/></s:link>]
</s:span>
</s:div>
15 years, 4 months
Seam SVN: r11351 - branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-08-06 18:26:48 -0400 (Thu, 06 Aug 2009)
New Revision: 11351
Added:
branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java
Modified:
branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/SubscriptionRegistry.java
Log:
back port of JBSEAM-2082
Modified: branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/SubscriptionRegistry.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/SubscriptionRegistry.java 2009-08-06 19:29:49 UTC (rev 11350)
+++ branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/SubscriptionRegistry.java 2009-08-06 22:26:48 UTC (rev 11351)
@@ -18,8 +18,6 @@
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.intercept.BypassInterceptors;
-import org.jboss.seam.contexts.Context;
-import org.jboss.seam.contexts.Contexts;
import org.jboss.seam.log.LogProvider;
import org.jboss.seam.log.Logging;
@@ -33,9 +31,6 @@
@Install(value = false, precedence=BUILT_IN)
public class SubscriptionRegistry
{
- public static final String CONTEXT_USER_TOKENS =
- "org.jboss.seam.remoting.messaging.SubscriptionRegistry.userTokens";
-
private static final LogProvider log = Logging.getLogProvider(SubscriptionRegistry.class);
private String connectionProvider;
@@ -131,30 +126,35 @@
}
}
- /**
- *
- * @return Set
- */
- public Set getUserTokens()
+ public UserTokens getUserTokens()
{
- Context session = Contexts.getSessionContext();
- if (session.get(CONTEXT_USER_TOKENS) == null)
- {
- synchronized(session)
- {
- if (session.get(CONTEXT_USER_TOKENS) == null)
- session.set(CONTEXT_USER_TOKENS, new HashSet<String> ());
- }
- }
- return (Set) session.get(CONTEXT_USER_TOKENS);
+ return (UserTokens) Component.getInstance(UserTokens.class);
}
public RemoteSubscriber getSubscription(String token)
{
- if (!getUserTokens().contains(token))
- throw new IllegalArgumentException(
- "Invalid token argument - token not found in Session Context.");
-
+ if (!getUserTokens().contains(token)) {
+ throw new IllegalArgumentException("Invalid token argument - token not found in Session Context.");
+ }
+
return subscriptions.get(token);
}
+
+ public Set<String> getAllTokens() {
+ return subscriptions.keySet();
+ }
+
+ public void cleanupTokens(Set<String> tokens)
+ {
+ for (String token: tokens) {
+ RemoteSubscriber subscriber = subscriptions.remove(token);
+ if (subscriber!=null) {
+ try {
+ subscriber.unsubscribe();
+ } catch (Exception e) {
+ log.debug("problem cleaning up subcription", e);
+ }
+ }
+ }
+ }
}
Added: branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java (rev 0)
+++ branches/enterprise/JBPAPP_5_0/src/remoting/org/jboss/seam/remoting/messaging/UserTokens.java 2009-08-06 22:26:48 UTC (rev 11351)
@@ -0,0 +1,33 @@
+package org.jboss.seam.remoting.messaging;
+
+import java.util.HashSet;
+import java.util.Set;
+
+import org.jboss.seam.ScopeType;
+import org.jboss.seam.annotations.Destroy;
+import org.jboss.seam.annotations.Name;
+import org.jboss.seam.annotations.Scope;
+
+@Name("org.jboss.seam.remoting.messaging.SubscriptionRegistry.userTokens")
+(a)Scope(ScopeType.SESSION)
+public class UserTokens
+{
+ Set<String> tokens = new HashSet<String>();
+
+ public void add(String token) {
+ tokens.add(token);
+ }
+
+ public boolean contains(String token) {
+ return tokens.contains(token);
+ }
+
+ public void remove(String token) {
+ tokens.remove(token);
+ }
+
+ @Destroy
+ public void cleanUp() {
+ SubscriptionRegistry.instance().cleanupTokens(tokens);
+ }
+}
15 years, 4 months
Seam SVN: r11350 - branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US.
by seam-commits@lists.jboss.org
Author: nickarls
Date: 2009-08-06 15:29:49 -0400 (Thu, 06 Aug 2009)
New Revision: 11350
Modified:
branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Excel.xml
Log:
iteration on wrong level in xls columns docs
Modified: branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Excel.xml
===================================================================
--- branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Excel.xml 2009-08-06 19:27:50 UTC (rev 11349)
+++ branches/community/Seam_2_2/doc/Seam_Reference_Guide/en-US/Excel.xml 2009-08-06 19:29:49 UTC (rev 11350)
@@ -921,8 +921,8 @@
<programlisting role="XML">
<![CDATA[
<e:workbook>
- <e:worksheet>
- <e:column value="#{personList}" var="person">
+ <e:worksheet value="#{personList}" var="person">
+ <e:column>
<f:facet name="header">
<e:cell value="Last name"/>
</f:facet>
15 years, 4 months
Seam SVN: r11349 - branches/enterprise/JBPAPP_5_0/examples/ui/view.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-08-06 15:27:50 -0400 (Thu, 06 Aug 2009)
New Revision: 11349
Modified:
branches/enterprise/JBPAPP_5_0/examples/ui/view/template.xhtml
Log:
JBPAPP-2379
Modified: branches/enterprise/JBPAPP_5_0/examples/ui/view/template.xhtml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/ui/view/template.xhtml 2009-08-05 13:51:18 UTC (rev 11348)
+++ branches/enterprise/JBPAPP_5_0/examples/ui/view/template.xhtml 2009-08-06 19:27:50 UTC (rev 11349)
@@ -121,7 +121,7 @@
<s:div styleClass="content">
<h1><code><h:outputText value="#{tagName}" /></code></h1>
<ui:insert name="body" />
- <h:messages />
+<!-- <h:messages /> -->
</s:div>
</body>
15 years, 4 months
Seam SVN: r11348 - in branches/enterprise/JBPAPP_5_0: examples and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-08-05 09:51:18 -0400 (Wed, 05 Aug 2009)
New Revision: 11348
Removed:
branches/enterprise/JBPAPP_5_0/examples/metawidget/
Modified:
branches/enterprise/JBPAPP_5_0/build.xml
branches/enterprise/JBPAPP_5_0/examples/build.xml
branches/enterprise/JBPAPP_5_0/examples/readme.txt
Log:
JBPAPP-2375 - removed metawidget examples
Modified: branches/enterprise/JBPAPP_5_0/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build.xml 2009-08-05 12:29:05 UTC (rev 11347)
+++ branches/enterprise/JBPAPP_5_0/build.xml 2009-08-05 13:51:18 UTC (rev 11348)
@@ -516,8 +516,6 @@
<target name="copyexamples">
<ant dir="examples" target="copyextradependencies" inheritall="false">
<property name="lib.dir" value="${dist.lib.dir}"/>
- <property name="metawidget-war.lib" value="true"/>
- <property name="metawidget-ear.lib" value="true"/>
</ant>
<copy todir="${dist.dir}/examples">
<fileset dir="${basedir}/examples">
@@ -550,7 +548,6 @@
<include name="quartz/**/*" />
<include name="drools/**/*" />
<include name="nestedbooking/**/*" />
- <include name="metawidget/**/*" />
<include name="remoting/chatroom/**/*" />
<include name="remoting/helloworld/**/*" />
<include name="remoting/gwt/**/*" />
Modified: branches/enterprise/JBPAPP_5_0/examples/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/build.xml 2009-08-05 12:29:05 UTC (rev 11347)
+++ branches/enterprise/JBPAPP_5_0/examples/build.xml 2009-08-05 13:51:18 UTC (rev 11348)
@@ -331,21 +331,7 @@
<fileset id="trinidad-impl.jar" dir="${lib.dir}">
<include name="trinidad-impl.jar" if="trinidad.lib" />
</fileset>
-
- <!-- Dependencies for Metawidget -->
- <fileset id="metawidget.jar" dir="${lib.dir}">
- <include name="metawidget.jar" if="metawidget-war.lib" />
- </fileset>
-
- <fileset id="metawidget-frontend.jar" dir="${lib.dir}">
- <include name="metawidget-frontend.jar" if="metawidget-ear.lib" />
- </fileset>
-
- <fileset id="metawidget-backend.jar" dir="${lib.dir}">
- <include name="metawidget-backend.jar" if="metawidget-ear.lib" />
- </fileset>
-
<!-- Dependencies if el-ri is needed -->
<fileset id="el-ri.jar" dir="${lib.dir}">
@@ -500,23 +486,8 @@
<mkdir dir="${dist.dir}" />
</target>
- <target name="copyextradependencies" depends="gettrinidad, getmetawidget, getelri"/>
+ <target name="copyextradependencies" depends="gettrinidad, getelri"/>
- <target name="getmetawidget" depends="getmetawidget-war,getmetawidget-ear"/>
-
- <target name="getmetawidget-war" if="metawidget-war.lib">
- <copyInlineDependencies id="metawidget" scope="runtime" todir="${lib.dir}">
- <dependency groupId="org.metawidget" artifactId="metawidget" version="0.75"/>
- </copyInlineDependencies>
- </target>
-
- <target name="getmetawidget-ear" if="metawidget-ear.lib">
- <copyInlineDependencies id="metawidget" scope="runtime" todir="${lib.dir}">
- <dependency groupId="org.metawidget" artifactId="metawidget-frontend" version="0.75"/>
- <dependency groupId="org.metawidget" artifactId="metawidget-backend" version="0.75"/>
- </copyInlineDependencies>
- </target>
-
<target name="gettrinidad" if="trinidad.lib">
<copyInlineDependencies id="trinidad" scope="runtime" todir="${lib.dir}">
<dependency groupId="org.apache.myfaces.trinidad" artifactId="trinidad-api" version="1.2.5">
@@ -599,7 +570,6 @@
<fileset refid="urlrewrite.jar" />
<fileset refid="richfaces-impl.jar" />
<fileset refid="trinidad-impl.jar" />
- <fileset refid="metawidget-frontend.jar" />
<fileset refid="jboss-common-core.jar" />
<fileset refid="war.lib.extras" />
<mapper type="flatten" />
@@ -676,7 +646,6 @@
<fileset refid="seam.remoting.jar" />
<fileset refid="el-ri.jar" />
<fileset refid="trinidad-api.jar" />
- <fileset refid="metawidget-backend.jar" />
<fileset refid="jboss-common-core.jar" />
<fileset refid="openid.jar" />
<mapper type="flatten" />
@@ -826,7 +795,6 @@
<fileset refid="richfaces-api.jar" />
<fileset refid="groovy.jar" />
<fileset refid="trinidad-api.jar" />
- <fileset refid="metawidget.jar" />
<fileset refid="el-ri.jar"/>
<mapper type="flatten" />
</copy>
Modified: branches/enterprise/JBPAPP_5_0/examples/readme.txt
===================================================================
--- branches/enterprise/JBPAPP_5_0/examples/readme.txt 2009-08-05 12:29:05 UTC (rev 11347)
+++ branches/enterprise/JBPAPP_5_0/examples/readme.txt 2009-08-05 13:51:18 UTC (rev 11348)
@@ -46,9 +46,6 @@
messages/ The Seam message list example demonstrating use
of the @DataModel annotation.
-
-metawidget/ The Seam booking, groovybooking, dvdstore examples implemented
- using metawidget to define the UI forms.
nestedbooking/ The booking example modified to show the use of nested
conversations.
15 years, 4 months
Seam SVN: r11347 - in branches/enterprise/JBPAPP_5_0/build/embedded: shaded and 1 other directory.
by seam-commits@lists.jboss.org
Author: manaRH
Date: 2009-08-05 08:29:05 -0400 (Wed, 05 Aug 2009)
New Revision: 11347
Modified:
branches/enterprise/JBPAPP_5_0/build/embedded/build.xml
branches/enterprise/JBPAPP_5_0/build/embedded/hibernate-all.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded-all.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/shaded/hibernate-all.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded-all.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/shaded/thirdparty-all.pom.xml
branches/enterprise/JBPAPP_5_0/build/embedded/thirdparty-all.pom.xml
Log:
JBPAPP-2356 - synchronizing build and pom files for the current used version of jboss-embedded
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/build.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/build.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/build.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -36,6 +36,7 @@
<zipfileset src="${embedded.jars.dir}/thirdparty-all.jar" />
<zipfileset src="${lib.dir}/lucene-core.jar"/>
<zipfileset src="${lib.dir}/slf4j-log4j12.jar"/>
+ <zipfileset src="${lib.dir}/slf4j-api.jar"/>
</jar>
<copy file="${embedded.jars.dir}/jboss-embedded.jar" todir="${shaded.embedded.jars.dir}" />
<copy file="${embedded.jars.dir}/jboss-embedded-all.jar" todir="${shaded.embedded.jars.dir}" />
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/hibernate-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/hibernate-all.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/hibernate-all.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>hibernate-all</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>The hibernate-all.jar distributed with JBoss Embedded. This contains Hibernate
for running in an EJB3 enviroment (Hibernate, Hibernate Annotations, Hibernate EntityManager, Hibernate Validator, Hibernate Commons Annotations)</description>
</project>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded-all.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded-all.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>jboss-embedded-all</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>The jboss-embedded-all.jar distributed with JBoss Embedded. This contains all depdencies
from JBoss AS that originate in JBoss. This jar has has the org.jboss.embedded packages split out.</description>
@@ -13,7 +13,7 @@
<dependency>
<groupId>org.jboss.embedded</groupId>
<artifactId>jboss-embedded</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<exclusions>
<exclusion></exclusion>
</exclusions>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/jboss-embedded.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>jboss-embedded</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>This jar has the org.jboss.embedded packages split out from jboss-embedded-all.</description>
<dependencies>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/shaded/hibernate-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/shaded/hibernate-all.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/shaded/hibernate-all.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>hibernate-all</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>The hibernate-all.jar distributed with JBoss Embedded. This contains Hibernate
for running in an EJB3 enviroment (Hibernate, Hibernate Annotations, Hibernate EntityManager, Hibernate Validator, Hibernate Commons Annotations) and Hibernate Search (specific to this seam version of hibernate-all)</description>
</project>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded-all.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded-all.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-all</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>The jboss-embedded-all.jar distributed with JBoss Embedded. This contains all depdencies
from JBoss AS that originate in JBoss. This jar has has the org.jboss.embedded packages split out.</description>
@@ -13,7 +13,7 @@
<dependency>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-api</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<exclusions>
<exclusion></exclusion>
</exclusions>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/shaded/jboss-embedded.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>jboss-embedded-api</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>This jar has the org.jboss.embedded packages split out from jboss-embedded-all. This Seam specific version simply keeps the old jboss-embedded-api name for tooling compatibility</description>
<dependencies>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/shaded/thirdparty-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/shaded/thirdparty-all.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/shaded/thirdparty-all.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.embedded</groupId>
<artifactId>thirdparty-all</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>The thirdparty-all.jar distributed with JBoss Embedded. This contains thirdparty
dependencies distributed with JBoss AS. This Seam version also includes lucene, a dependency
of hibernate search</description>
Modified: branches/enterprise/JBPAPP_5_0/build/embedded/thirdparty-all.pom.xml
===================================================================
--- branches/enterprise/JBPAPP_5_0/build/embedded/thirdparty-all.pom.xml 2009-08-05 12:24:08 UTC (rev 11346)
+++ branches/enterprise/JBPAPP_5_0/build/embedded/thirdparty-all.pom.xml 2009-08-05 12:29:05 UTC (rev 11347)
@@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.embedded</groupId>
<artifactId>thirdparty-all</artifactId>
- <version>beta3.SP8</version>
+ <version>beta3.SP9</version>
<description>The thirdparty-all.jar distributed with JBoss Embedded. This contains thirdparty
dependencies distributed with JBoss AS.</description>
</project>
15 years, 4 months