[seam-commits] Seam SVN: r14589 - in branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test: resources-integration and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 16 11:15:00 EDT 2012


Author: maschmid
Date: 2012-04-16 11:15:00 -0400 (Mon, 16 Apr 2012)
New Revision: 14589

Added:
   branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/resources-integration/web.xml
Modified:
   branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/java/org/jboss/seam/example/messages/test/MessageListTest.java
Log:
fix messages seamtest


Modified: branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/java/org/jboss/seam/example/messages/test/MessageListTest.java
===================================================================
--- branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/java/org/jboss/seam/example/messages/test/MessageListTest.java	2012-04-16 15:07:04 UTC (rev 14588)
+++ branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/java/org/jboss/seam/example/messages/test/MessageListTest.java	2012-04-16 15:15:00 UTC (rev 14589)
@@ -27,8 +27,12 @@
 	{
       EnterpriseArchive er = ShrinkWrap.create(ZipImporter.class, "seam-messages.ear").importFrom(new File("../messages-ear/target/seam-messages.ear"))
 				.as(EnterpriseArchive.class);
-      WebArchive web = er.getAsType(WebArchive.class, "messages-web.war");      
+      WebArchive web = er.getAsType(WebArchive.class, "messages-web.war");
       web.addClasses(MessageListTest.class);
+      
+      // Install org.jboss.seam.mock.MockSeamListener
+      web.delete("/WEB-INF/web.xml");
+      web.addAsWebInfResource("web.xml");
 
       return er;
    }

Added: branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/resources-integration/web.xml
===================================================================
--- branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/resources-integration/web.xml	                        (rev 0)
+++ branches/community/Seam_2_3/examples-ee6/messages/messages-tests/src/test/resources-integration/web.xml	2012-04-16 15:15:00 UTC (rev 14589)
@@ -0,0 +1,12 @@
+<?xml version="1.0" ?>
+
+<web-app version="3.0"
+         xmlns="http://java.sun.com/xml/ns/javaee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
+         
+    <listener>
+        <listener-class>org.jboss.seam.mock.MockSeamListener</listener-class>
+    </listener>
+
+</web-app>



More information about the seam-commits mailing list