[seam-commits] Seam SVN: r15533 - in branches/enterprise/WFK-2_1/examples/seamspace: seamspace-ear and 12 other directories.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Jun 3 14:05:18 EDT 2013


Author: maschmid
Date: 2013-06-03 14:05:17 -0400 (Mon, 03 Jun 2013)
New Revision: 15533

Added:
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/BlogTest.java
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/Deployments.java
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/RegisterTest.java
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/arquillian.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/components.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/jboss-deployment-structure.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/pages.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/persistence.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/web.xml
Removed:
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-tests/
Modified:
   branches/enterprise/WFK-2_1/examples/seamspace/pom.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ear/pom.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/pom.xml
   branches/enterprise/WFK-2_1/examples/seamspace/seamspace-web/pom.xml
Log:
seamspace migrated


Modified: branches/enterprise/WFK-2_1/examples/seamspace/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/pom.xml	2013-06-03 17:24:43 UTC (rev 15532)
+++ branches/enterprise/WFK-2_1/examples/seamspace/pom.xml	2013-06-03 18:05:17 UTC (rev 15533)
@@ -3,27 +3,49 @@
     <modelVersion>4.0.0</modelVersion>
     <groupId>org.jboss.seam.examples</groupId>
     <artifactId>seamspace</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>SeamSpace Example (EE6)</name>
     
     <properties>
         <example.name>seamspace</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>seamspace-ear</module>
         <module>seamspace-ejb</module>
         <module>seamspace-web</module>
-        <module>seamspace-tests</module>
+        
     </modules>
     
     <dependencyManagement>
         <dependencies>
+            <!-- Modules -->
             <dependency>
                 <groupId>org.jboss.seam.examples.seamspace</groupId>
                 <artifactId>seamspace-ejb</artifactId>
@@ -41,6 +63,82 @@
                 <artifactId>seamspace-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/seamspace/seamspace-ear/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ear/pom.xml	2013-06-03 17:24:43 UTC (rev 15532)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ear/pom.xml	2013-06-03 18:05:17 UTC (rev 15533)
@@ -85,10 +85,20 @@
 
     <build>
         <finalName>seam-seamspace</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/seamspace/seamspace-ejb/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/pom.xml	2013-06-03 17:24:43 UTC (rev 15532)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/pom.xml	2013-06-03 18:05:17 UTC (rev 15533)
@@ -81,6 +81,112 @@
                 </exclusion>
             </exclusions>
         </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-seamspace/#{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/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/BlogTest.java
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/BlogTest.java	                        (rev 0)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/BlogTest.java	2013-06-03 18:05:17 UTC (rev 15533)
@@ -0,0 +1,161 @@
+package org.jboss.seam.example.seamspace.test;
+
+import static org.junit.Assert.*;
+
+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.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;
+
+ at RunWith(Arquillian.class)
+public class BlogTest extends JUnitSeamTest
+{   
+   @Deployment(name="BlogTest")
+   @OverProtocol("Servlet 3.0")
+   public static Archive<?> createDeployment()
+   {
+      return Deployments.seamSpaceDeployment();
+   }
+
+   @Test
+   public void testCreateBlog() throws Exception
+   {
+      // Log in first
+      new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            setValue("#{identity.username}", "demo");
+            setValue("#{identity.password}", "demo");
+            invokeAction("#{identity.login}");
+            assertTrue((Boolean)getValue("#{identity.loggedIn}"));
+         }
+      }.run();
+
+      String cid = new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertNull(invokeAction("#{blog.createEntry}"));
+         }
+      }.run();
+
+      new FacesRequest("/createBlog.xhtml", cid)
+      {
+         @Override 
+         protected void updateModelValues() throws Exception
+         {
+            setValue("#{selectedBlog.title}", "A new blog entry");
+            setValue("#{selectedBlog.text}", "A very very very long section of text. " + 
+                  "This text should be long enough to simulate a typical blog entry. " +
+                  "Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed interdum " +
+                  "felis non arcu. Phasellus sodales pharetra dui. Suspendisse felis turpis, " +
+                  "ultricies a, ullamcorper sed, nonummy id, nulla. Ut quis orci. Mauris diam " +
+                  "pede, condimentum et, tempor vitae, facilisis non, sem. Mauris quam ipsum, " +
+                  "laoreet non, ultricies in, aliquet nec, metus. Morbi dui. Vestibulum " +
+                  "ullamcorper, tellus non hendrerit consequat, libero erat laoreet metus, " +
+                  "quis facilisis arcu diam vel orci. Fusce tempor erat eget odio. Aliquam urna " +
+                  "dui, dignissim id, pretium in, congue quis, est. Phasellus nec erat ac arcu " +
+                  "porttitor rhoncus. Pellentesque habitant morbi tristique senectus et netus et " +
+                  "malesuada fames ac turpis egestas. Nulla sed massa ut est sodales ultrices. " +
+                  "Sed vitae nulla eu tellus fringilla sagittis. Nunc convallis, mi at lobortis " +
+                  "rhoncus, neque turpis ullamcorper odio, quis scelerisque est dolor non velit. Integer vulputate.");
+         }
+
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertNull(invokeAction("#{blog.saveEntry}"));
+         }
+
+      }.run();
+
+      new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            invokeAction("#{identity.logout}");
+            assertFalse((Boolean)getValue("#{identity.loggedIn}"));
+         }
+      }.run();
+   }
+
+   //@Test
+   public void testCreateComment() throws Exception
+   {
+      new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            setValue("#{identity.username}", "demo");
+            setValue("#{identity.password}", "demo");
+            invokeAction("#{identity.login}");
+            assertTrue((Boolean)getValue("#{identity.loggedIn}"));
+         }
+      }.run();
+
+      String cid = new FacesRequest("/comment.xhtml")
+      {
+         @Override
+         protected void beforeRequest()
+         {
+            setParameter("name", "Mr_Smiley");
+            setParameter("blogId", "1");
+         }
+
+         @Override
+         protected void renderResponse() throws Exception
+         {
+              assertNotNull(getValue("#{selectedBlog}"));
+              assertEquals(1, getValue("#{selectedBlog.blogId}"));
+         }
+      }.run();
+
+      new FacesRequest("/comment.xhtml", cid)
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertNull(invokeAction("#{blog.createComment}"));
+
+            assertNotNull(getValue("#{comment}"));
+            assertNotNull(getValue("#{comment.blog}"));
+         }
+      }.run();
+
+       new FacesRequest("/comment.xhtml", cid)
+       {
+          @Override
+          protected void updateModelValues() throws Exception
+          {
+             setValue("#{comment.comment}", "I totally disagree with your blog entry!");
+          }
+
+          @Override
+          protected void invokeApplication() throws Exception
+          {
+             assertNull(invokeAction("#{blog.saveComment}"));
+          }
+       }.run();
+
+      new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            invokeAction("#{identity.logout}");
+            assertFalse((Boolean)getValue("#{identity.loggedIn}"));
+         }
+      }.run();
+
+   }
+}

Added: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/Deployments.java
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/Deployments.java	                        (rev 0)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/Deployments.java	2013-06-03 18:05:17 UTC (rev 15533)
@@ -0,0 +1,44 @@
+package org.jboss.seam.example.seamspace.test;
+
+import org.jboss.shrinkwrap.api.ShrinkWrap;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.jboss.shrinkwrap.resolver.api.maven.Maven;
+
+import java.io.File;
+import org.jboss.shrinkwrap.api.asset.StringAsset;
+
+public class Deployments {
+   public static WebArchive seamSpaceDeployment() {
+      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-seamspace.war")
+                .addPackages(true, "org.jboss.seam.example.seamspace")
+
+                // already in EJB module
+                .addAsResource("import.sql", "import.sql")
+                .addAsResource("seam.properties", "seam.properties")
+                .addAsWebInfResource("META-INF/ejb-jar.xml", "ejb-jar.xml")
+                .addAsResource("META-INF/orm.xml", "META-INF/orm.xml")
+                .addAsResource("META-INF/security-rules.drl", "META-INF/security-rules.drl")
+
+                // test-specific persistence.xml
+                .addAsResource("persistence.xml", "META-INF/persistence.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/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/RegisterTest.java
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/RegisterTest.java	                        (rev 0)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/java/org/jboss/seam/example/seamspace/test/RegisterTest.java	2013-06-03 18:05:17 UTC (rev 15533)
@@ -0,0 +1,87 @@
+package org.jboss.seam.example.seamspace.test;
+
+import static org.junit.Assert.*;
+
+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.core.Manager;
+import org.jboss.seam.mock.JUnitSeamTest;
+import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
+import org.junit.Test;
+import org.junit.runner.RunWith;
+
+ at RunWith(Arquillian.class)
+public class RegisterTest extends JUnitSeamTest
+{
+
+   @Deployment(name="RegisterTest")
+   @OverProtocol("Servlet 3.0")
+   public static Archive<?> createDeployment()
+   {
+      return Deployments.seamSpaceDeployment();
+   }
+
+   @Test
+   public void testRegister() throws Exception
+   {
+      String cid = new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertNull(invokeAction("#{register.start}"));
+         }
+      }.run();
+
+      new FacesRequest("/register.xhtml", cid)
+      {
+         @Override 
+         protected void updateModelValues() throws Exception
+         {
+            setValue("#{register.member.email}", "shane at test.com");
+            setValue("#{register.member.firstName}", "Shane");
+            setValue("#{register.member.lastName}", "Bryzak");
+            setValue("#{register.member.memberName}", "shane123");
+            setValue("#{register.username}", "sbryzak");
+            setValue("#{register.password}", "secret");
+            setValue("#{register.confirm}", "secret");
+            setValue("#{register.gender}", "Male");
+            setValue("#{register.member.dob}", new Date(107100000000L));
+         }
+
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertNull(invokeAction("#{register.next}"));
+         }
+         
+      }.run();
+
+      new FacesRequest("/register2.xhtml", cid)
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertNull(invokeAction("#{register.uploadPicture}"));
+            assertFalse(Manager.instance().isLongRunningConversation());
+         }
+
+      }.run();
+
+      new FacesRequest()
+      {
+         @Override
+         protected void invokeApplication() throws Exception
+         {
+            assertTrue((Boolean)getValue("#{identity.loggedIn}"));
+            assertNull(invokeAction("#{identity.logout}"));
+            assertFalse((Boolean)getValue("#{identity.loggedIn}"));
+         }
+
+      }.run();
+   }
+}

Added: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/arquillian.xml
===================================================================
(Binary files differ)


Property changes on: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/arquillian.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Added: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/components.xml
===================================================================
(Binary files differ)


Property changes on: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/components.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Added: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/jboss-deployment-structure.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/jboss-deployment-structure.xml	                        (rev 0)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/jboss-deployment-structure.xml	2013-06-03 18:05:17 UTC (rev 15533)
@@ -0,0 +1,10 @@
+<jboss-deployment-structure xmlns="urn:jboss:deployment-structure:1.0">
+  <deployment>
+  	  <dependencies>
+          <module name="org.antlr" export="true"/>
+          <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/seamspace/seamspace-ejb/src/test/resources/pages.xml
===================================================================
(Binary files differ)


Property changes on: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/pages.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Added: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/persistence.xml
===================================================================
(Binary files differ)


Property changes on: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/persistence.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Added: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/web.xml
===================================================================
(Binary files differ)


Property changes on: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-ejb/src/test/resources/web.xml
___________________________________________________________________
Added: svn:mime-type
   + application/xml

Modified: branches/enterprise/WFK-2_1/examples/seamspace/seamspace-web/pom.xml
===================================================================
--- branches/enterprise/WFK-2_1/examples/seamspace/seamspace-web/pom.xml	2013-06-03 17:24:43 UTC (rev 15532)
+++ branches/enterprise/WFK-2_1/examples/seamspace/seamspace-web/pom.xml	2013-06-03 18:05:17 UTC (rev 15533)
@@ -66,6 +66,7 @@
             <plugin>
                 <groupId>org.apache.maven.plugins</groupId>
                 <artifactId>maven-war-plugin</artifactId>
+                <version>${version.war.plugin}</version>
                 <configuration>
                     <webResources>
                         <resource>



More information about the seam-commits mailing list