Author: maschmid
Date: 2013-06-03 13:24:43 -0400 (Mon, 03 Jun 2013)
New Revision: 15532
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/AccountTest.java
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/Deployments.java
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/PaymentProcessorTest.java
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/arquillian.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/components.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/jboss-deployment-structure.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/pages.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/web.xml
Removed:
branches/enterprise/WFK-2_1/examples/seampay/seampay-tests/
Modified:
branches/enterprise/WFK-2_1/examples/seampay/pom.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-ear/pom.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/pom.xml
branches/enterprise/WFK-2_1/examples/seampay/seampay-web/pom.xml
Log:
migrated seampay
Modified: branches/enterprise/WFK-2_1/examples/seampay/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seampay/pom.xml 2013-06-03 17:19:25 UTC (rev
15531)
+++ branches/enterprise/WFK-2_1/examples/seampay/pom.xml 2013-06-03 17:24:43 UTC (rev
15532)
@@ -3,27 +3,49 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.seam.examples</groupId>
<artifactId>seampay</artifactId>
- <parent>
- <groupId>org.jboss.seam</groupId>
- <artifactId>examples</artifactId>
- <version>2.3.1.Final-redhat-2</version>
- </parent>
+ <version>2.3.1.Final-redhat-2</version>
+
<packaging>pom</packaging>
<name>Seampay Example (EE6)</name>
<properties>
<example.name>seampay</example.name>
+ <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+ <maven.compiler.target>1.6</maven.compiler.target>
+ <maven.compiler.source>1.6</maven.compiler.source>
+
+ <!-- To use jacoco, set jacoco.agent system property to something like
+
-javaagent:/path/to/jacocoagent.jar=append=true,destfile=/path/to/output/jacoco.exec
-->
+ <jacoco.agent />
+
+ <!-- To use custom Maven settings with ShrinkWrap Resolver, uncomment
+ and customize the following property. -->
+
<!--<maven.user.settings>/path/to/custom/settings.xml</maven.user.settings>-->
+
+ <version.commons.logging>1.1.1</version.commons.logging>
+
<version.shrinkwrap.resolver>2.0.0-beta-4</version.shrinkwrap.resolver>
+
+ <!-- Plugin versions -->
+ <version.dependency.plugin>2.5.1</version.dependency.plugin>
+ <version.surefire.plugin>2.10</version.surefire.plugin>
+ <version.resources.plugin>2.6</version.resources.plugin>
+ <version.compiler.plugin>2.3.1</version.compiler.plugin>
+ <version.ear.plugin>2.6</version.ear.plugin>
+ <version.war.plugin>2.1.1</version.war.plugin>
+ <version.ejb.plugin>2.3</version.ejb.plugin>
+ <version.jboss.maven.plugin>7.4.Final</version.jboss.maven.plugin>
</properties>
<modules>
<module>seampay-ear</module>
<module>seampay-ejb</module>
<module>seampay-web</module>
- <module>seampay-tests</module>
+
</modules>
<dependencyManagement>
<dependencies>
+ <!-- Modules -->
<dependency>
<groupId>org.jboss.seam.examples.seampay</groupId>
<artifactId>seampay-ejb</artifactId>
@@ -41,6 +63,83 @@
<artifactId>seampay-ear</artifactId>
<version>${project.version}</version>
</dependency>
+
+ <!-- BOMs -->
+ <dependency>
+ <groupId>org.jboss.shrinkwrap.resolver</groupId>
+ <artifactId>shrinkwrap-resolver-bom</artifactId>
+ <version>${version.shrinkwrap.resolver}</version>
+ <scope>import</scope>
+ <type>pom</type>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>bom</artifactId>
+ <version>${project.version}</version>
+ <type>pom</type>
+ <scope>import</scope>
+ </dependency>
+
+ <!-- Common provided dependencies -->
+ <dependency>
+ <groupId>commons-logging</groupId>
+ <artifactId>commons-logging</artifactId>
+ <version>${version.commons.logging}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- TestNG is not necessary -->
+ <dependency>
+ <groupId>org.jboss.seam</groupId>
+ <artifactId>jboss-seam</artifactId>
+ <version>${project.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>org.testng</groupId>
+ <artifactId>testng</artifactId>
+ </exclusion>
+ <exclusion>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+
</dependencies>
</dependencyManagement>
+
+ <build>
+ <pluginManagement>
+ <plugins>
+ <!-- Manage plugin versions for build stability -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>${version.surefire.plugin}</version>
+ <configuration>
+ <systemPropertyVariables>
+
<org.apache.maven.user-settings>${maven.user.settings}</org.apache.maven.user-settings>
+ </systemPropertyVariables>
+ </configuration>
+ </plugin>
+ <plugin>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>${version.dependency.plugin}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-resources-plugin</artifactId>
+ <version>${version.resources.plugin}</version>
+ </plugin>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>${version.compiler.plugin}</version>
+ <configuration>
+ <source>${maven.compiler.source}</source>
+ <target>${maven.compiler.target}</target>
+ </configuration>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+ </build>
+
</project>
Modified: branches/enterprise/WFK-2_1/examples/seampay/seampay-ear/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seampay/seampay-ear/pom.xml 2013-06-03 17:19:25
UTC (rev 15531)
+++ branches/enterprise/WFK-2_1/examples/seampay/seampay-ear/pom.xml 2013-06-03 17:24:43
UTC (rev 15532)
@@ -60,10 +60,20 @@
<build>
<finalName>seam-seampay</finalName>
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <groupId>org.jboss.as.plugins</groupId>
+ <artifactId>jboss-as-maven-plugin</artifactId>
+ <version>${version.jboss.maven.plugin}</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
+ <version>${version.ear.plugin}</version>
<configuration>
<version>6</version>
<defaultLibBundleDir>lib</defaultLibBundleDir>
Modified: branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/pom.xml 2013-06-03 17:19:25
UTC (rev 15531)
+++ branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/pom.xml 2013-06-03 17:24:43
UTC (rev 15532)
@@ -49,6 +49,112 @@
<artifactId>jboss-jsf-api_2.1_spec</artifactId>
<scope>provided</scope>
</dependency>
+
+ <!-- Test dependencies -->
+ <dependency>
+ <groupId>org.jboss.shrinkwrap.resolver</groupId>
+ <artifactId>shrinkwrap-resolver-depchain</artifactId>
+ <type>pom</type>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.junit</groupId>
+ <artifactId>arquillian-junit-container</artifactId>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.jboss.arquillian.protocol</groupId>
+ <artifactId>arquillian-protocol-servlet</artifactId>
+ <scope>test</scope>
+ </dependency>
</dependencies>
-
+
+ <profiles>
+ <profile>
+ <id>integration-tests</id>
+ <activation>
+ <property>
+ <name>arquillian</name>
+ </property>
+ </activation>
+ <properties>
+ <jndiPattern>java:app/seam-seampay/#{ejbName}</jndiPattern>
+ <distributable>false</distributable>
+ </properties>
+ <build>
+ <testResources>
+ <testResource>
+ <directory>src/test/resources</directory>
+ <filtering>true</filtering>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>false</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <id>arq-jbossas-7-managed</id>
+ <activation>
+ <property>
+ <name>arquillian</name>
+ <value>jbossas-managed-7</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.as</groupId>
+
<artifactId>jboss-as-arquillian-container-managed</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ <profile>
+ <id>arq-jbossas-7-remote</id>
+ <activation>
+ <property>
+ <name>arquillian</name>
+ <value>jbossas-remote-7</value>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.as</groupId>
+
<artifactId>jboss-as-arquillian-container-remote</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ </profile>
+
+ </profiles>
+
+ <build>
+ <plugins>
+ <!-- Skip tests by default -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/AccountTest.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/AccountTest.java
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/AccountTest.java 2013-06-03
17:24:43 UTC (rev 15532)
@@ -0,0 +1,131 @@
+package org.jboss.seam.example.seampay.test;
+
+import java.math.BigDecimal;
+import java.util.List;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.OverProtocol;
+import org.jboss.arquillian.junit.Arquillian;
+
+import org.jboss.seam.example.seampay.Account;
+import org.jboss.seam.example.seampay.Payment;
+import org.jboss.seam.example.seampay.Payment.Frequency;
+import org.jboss.seam.mock.JUnitSeamTest;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+(a)RunWith(Arquillian.class)
+public class AccountTest
+ extends JUnitSeamTest
+{
+ @Deployment(name="AccountTest")
+ @OverProtocol("Servlet 3.0")
+ public static Archive<?> createDeployment()
+ {
+ return Deployments.seamPayDeployment();
+ }
+
+ @Test
+ public void listAccounts() throws Exception {
+ new FacesRequest("/search.xhtml") {
+
+ @Override
+ @SuppressWarnings("unchecked")
+ protected void renderResponse() throws Exception {
+ List<Account> accounts = (List<Account>)
getValue("#{accounts.resultList}");
+
+ assert accounts.size() == 5;
+ // check ASC?
+ }
+ }.run();
+ }
+
+ @Test
+ public void selectAccount() throws Exception {
+ String id = new FacesRequest("/search.xhtml") {
+ @Override
+ protected void renderResponse() throws Exception {
+ assert !((Boolean)getValue("#{accountHome.idDefined}"));
+ }
+ }.run();
+
+ new FacesRequest("/search.xhtml", id) {
+ @Override
+ protected void beforeRequest() {
+ setParameter("accountId", "1");
+ }
+
+ @Override
+ protected void renderResponse() throws Exception {
+ assert ((Boolean)getValue("#{accountHome.idDefined}"));
+
+ Account account = (Account) getValue("#{selectedAccount}");
+ assert account !=null;
+ assert account.getId() == 1;
+ assert account.getPayments().size() == 0;
+
+ Payment payment = (Payment) getValue("#{newPayment}");
+ assert payment.getPayee().equals("Somebody");
+ assert payment.getAccount() != null;
+ assert payment.getAccount().getId() == 1;
+
+ }
+ }.run();
+
+
+ new FacesRequest("/search.xhtml", id) {
+ @Override
+ protected void beforeRequest() {
+ setParameter("accountId", "1");
+ }
+
+ @Override
+ protected void applyRequestValues() throws Exception {
+ setValue("#{newPayment.payee}", "IRS");
+ setValue("#{newPayment.amount}", new
BigDecimal("100.00"));
+ setValue("#{newPayment.paymentFrequency}", Frequency.ONCE);
+ }
+
+ @Override
+ protected void invokeApplication() throws Exception {
+ invokeMethod("#{paymentHome.saveAndSchedule}");
+ }
+
+ @Override
+ protected void renderResponse() throws Exception {
+ assert ((Boolean)getValue("#{accountHome.idDefined}"));
+ Account account = (Account) getValue("#{selectedAccount}");
+ assert account !=null;
+ assert account.getId() == 1;
+ assert account.getPayments().size() == 1;
+
+ Payment payment = (Payment) getValue("#{newPayment}");
+ assert payment.getPayee().equals("IRS");
+ assert payment.getAmount().equals(new BigDecimal("100.00"));
+ assert payment.getAccount() != null;
+ assert payment.getAccount().getId() == 1;
+ }
+ }.run();
+
+
+ // test that the payment is around
+ new FacesRequest("/search.xhtml") {
+ @Override
+ protected void beforeRequest() {
+ setParameter("accountId", "1");
+ }
+
+ @Override
+ protected void renderResponse() throws Exception {
+ assert ((Boolean)getValue("#{accountHome.idDefined}"));
+ Account account = (Account) getValue("#{selectedAccount}");
+ assert account !=null;
+ assert account.getId() == 1;
+ assert account.getPayments().size() == 1;
+ }
+ }.run();
+ }
+
+}
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/Deployments.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/Deployments.java
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/Deployments.java 2013-06-03
17:24:43 UTC (rev 15532)
@@ -0,0 +1,41 @@
+package org.jboss.seam.example.seampay.test;
+
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.importer.ZipImporter;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jboss.shrinkwrap.resolver.api.maven.Maven;
+
+import java.io.File;
+
+public class Deployments {
+ public static WebArchive seamPayDeployment() {
+ File[] libs = Maven.resolver().loadPomFromFile("pom.xml")
+ .importCompileAndRuntimeDependencies()
+ // force resolve jboss-seam, because it is provided-scoped in the pom,
but we need it bundled in the WAR
+ .resolve("org.jboss.seam:jboss-seam")
+ .withTransitivity().asFile();
+
+ WebArchive war = ShrinkWrap.create(WebArchive.class, "seam-seampay.war")
+ .addPackages(true, "org.jboss.seam.example.seampay")
+
+ // already in EJB module
+ .addAsResource("import.sql", "import.sql")
+ .addAsResource("seam.properties", "seam.properties")
+ .addAsResource("META-INF/persistence.xml",
"META-INF/persistence.xml")
+
+ .addAsWebInfResource("META-INF/ejb-jar.xml",
"ejb-jar.xml")
+
+ // manually copied from Web module
+ .addAsWebInfResource("pages.xml", "pages.xml")
+
+ // manually copied from Web module, modified
+ .addAsWebInfResource("web.xml", "web.xml") // only
contains MockSeamListener definition
+ .addAsWebInfResource("components.xml",
"components.xml") // corrected ejb component jndi-name references from
java:app/jboss-seam to java:app/seam-seampay
+
+ // manually copied from EAR module
+ .addAsWebInfResource("jboss-deployment-structure.xml",
"jboss-deployment-structure.xml")
+ .addAsLibraries(libs);
+
+ return war;
+ }
+}
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/PaymentProcessorTest.java
===================================================================
---
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/PaymentProcessorTest.java
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/java/org/jboss/seam/example/seampay/test/PaymentProcessorTest.java 2013-06-03
17:24:43 UTC (rev 15532)
@@ -0,0 +1,112 @@
+package org.jboss.seam.example.seampay.test;
+
+import java.math.BigDecimal;
+import java.util.Date;
+import org.jboss.arquillian.container.test.api.Deployment;
+import org.jboss.arquillian.container.test.api.OverProtocol;
+import org.jboss.arquillian.junit.Arquillian;
+
+import org.jboss.seam.example.seampay.Account;
+import org.jboss.seam.example.seampay.Payment;
+import org.jboss.seam.example.seampay.PaymentProcessor;
+import org.jboss.seam.example.seampay.Payment.Frequency;
+import org.jboss.seam.mock.JUnitSeamTest;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+(a)RunWith(Arquillian.class)
+public class PaymentProcessorTest
+ extends JUnitSeamTest
+{
+ static final String ACCOUNT_NUMBER = "X12345";
+ static final BigDecimal INITIAL_BALANCE = new BigDecimal("1000");
+
+ @Deployment(name="PaymentProcessorTest")
+ @OverProtocol("Servlet 3.0")
+ public static Archive<?> createDeployment()
+ {
+ return Deployments.seamPayDeployment();
+ }
+
+ @Test
+ public void testInactive() {
+ PaymentProcessor processor = new PaymentProcessor();
+
+ Payment payment = createTestPayment(new BigDecimal("100"),
Frequency.ONCE);
+ payment.setActive(false);
+
+ assert payment.getAccount().getBalance().equals(INITIAL_BALANCE);
+
+ processor.processPayment(payment);
+
+ assert payment.getAccount().getBalance().equals(INITIAL_BALANCE);
+ assert payment.getLastPaid() == null;
+ }
+
+ @Test
+ public void testPayOnce() {
+ PaymentProcessor processor = new PaymentProcessor();
+
+ Payment payment = createTestPayment(new BigDecimal("100"),
Frequency.ONCE);
+
+ assert payment.getAccount().getBalance().equals(INITIAL_BALANCE);
+
+ processor.processPayment(payment);
+
+ assert payment.getAccount().getBalance().equals(new
BigDecimal("900"));
+ assert !payment.getActive();
+ assert payment.getLastPaid() != null;
+ }
+
+ @Test
+ public void testPayMultiple() {
+ PaymentProcessor processor = new PaymentProcessor();
+
+ Payment payment = createTestPayment(new BigDecimal("100"),
Frequency.WEEKLY);
+
+ assert payment.getAccount().getBalance().equals(INITIAL_BALANCE);
+
+ processor.processPayment(payment);
+
+ assert payment.getAccount().getBalance().equals(new
BigDecimal("900"));
+ assert payment.getActive();
+ assert payment.getLastPaid() != null;
+
+ Date firstPayment = payment.getLastPaid();
+
+ pause(); // just need to make sure we are some small time in the future
+
+ processor.processPayment(payment);
+
+ assert payment.getAccount().getBalance().equals(new
BigDecimal("800"));
+ assert payment.getActive();
+ assert payment.getLastPaid().after(firstPayment);
+ }
+
+
+ private void pause() {
+ try {
+ Thread.sleep(1);
+ } catch (InterruptedException e) {
+
+ }
+ }
+
+ protected Payment createTestPayment(BigDecimal amount, Frequency frequency) {
+ Account account = new Account();
+ account.setAccountNumber(ACCOUNT_NUMBER);
+ setField(account, "balance", INITIAL_BALANCE);
+
+ Payment payment = new Payment();
+ payment.setAccount(account);
+ payment.setAmount(amount);
+ payment.setPaymentFrequency(frequency);
+
+ return payment;
+ }
+
+
+}
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/arquillian.xml
===================================================================
(Binary files differ)
Property changes on:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/arquillian.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/components.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/components.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/components.xml 2013-06-03
17:24:43 UTC (rev 15532)
@@ -0,0 +1,46 @@
+<components
xmlns:pay="http://jboss.org/schema/seam/examples/seampay"
+
xmlns:core="http://jboss.org/schema/seam/core"
+
xmlns:persistence="http://jboss.org/schema/seam/persistence"
+
xmlns:framework="http://jboss.org/schema/seam/framework"
+
xmlns:async="http://jboss.org/schema/seam/async"
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation=
+ "http://jboss.org/schema/seam/core
http://jboss.org/schema/seam/core-2.3.xsd
+
http://jboss.org/schema/seam/persistence
http://jboss.org/schema/seam/persistence-2.3.xsd
+
http://jboss.org/schema/seam/async
http://jboss.org/schema/seam/async-2.3.xsd
+
http://jboss.org/schema/seam/framework
http://jboss.org/schema/seam/framework-2.3.xsd" >
+
+ <pay:payment-home
+ new-instance="#{newPayment}"
+ created-message="Created a new payment to
#{newPayment.payee}" />
+
+
+ <pay:payment name="newPayment"
+ payee="Somebody"
+ account="#{selectedAccount}"
+ payment-date="#{currentDatetime}"
+ created-date="#{currentDatetime}" />
+
+ <factory name="selectedAccount"
+ value="#{accountHome.instance}"/>
+
+ <framework:entity-home name="accountHome"
+
entity-class="org.jboss.seam.example.seampay.Account"
+ entity-manager="#{entityManager}" />
+
+ <framework:entity-query name="accounts"
+ ejbql="from Account"
+ order="accountNumber"
+ max-results="20"
+ entity-manager="#{entityManager}" />
+
+ <persistence:managed-persistence-context name="entityManager"
+ auto-create="true"
+
persistence-unit-jndi-name="java:/seampayEntityManagerFactory" />
+
+ <async:timer-service-dispatcher />
+ <component class="org.jboss.seam.async.ThreadPoolDispatcher"
precedence="40" />
+
+ <core:init debug="true" jndi-pattern="${jndiPattern}" />
+
+</components>
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/jboss-deployment-structure.xml
===================================================================
---
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/jboss-deployment-structure.xml
(rev 0)
+++
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/jboss-deployment-structure.xml 2013-06-03
17:24:43 UTC (rev 15532)
@@ -0,0 +1,9 @@
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
+ <deployment>
+ <dependencies>
+ <module name="org.dom4j" export="true"/>
+ <module name="javax.faces.api" export="true"/>
+ <module name="com.sun.jsf-impl" export="true"/>
+ </dependencies>
+ </deployment>
+</jboss-deployment-structure>
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/pages.xml
===================================================================
(Binary files differ)
Property changes on:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/pages.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Added:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/web.xml
===================================================================
(Binary files differ)
Property changes on:
branches/enterprise/WFK-2_1/examples/seampay/seampay-ejb/src/test/resources/web.xml
___________________________________________________________________
Added: svn:mime-type
+ application/xml
Modified: branches/enterprise/WFK-2_1/examples/seampay/seampay-web/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seampay/seampay-web/pom.xml 2013-06-03 17:19:25
UTC (rev 15531)
+++ branches/enterprise/WFK-2_1/examples/seampay/seampay-web/pom.xml 2013-06-03 17:24:43
UTC (rev 15532)
@@ -70,6 +70,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
+ <version>${version.war.plugin}</version>
<configuration>
<webResources>
<resource>