[seam-commits] Seam SVN: r15551 - branches/enterprise/WFK-2_1/seam-integration-tests/src/test/java/org/jboss/seam/test/integration/faces.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Wed Jun 5 07:34:38 EDT 2013


Author: maschmid
Date: 2013-06-05 07:34:38 -0400 (Wed, 05 Jun 2013)
New Revision: 15551

Modified:
   branches/enterprise/WFK-2_1/seam-integration-tests/src/test/java/org/jboss/seam/test/integration/faces/ExceptionRedirectTest.java
Log:
fix ExceptionRedirectTest


Modified: branches/enterprise/WFK-2_1/seam-integration-tests/src/test/java/org/jboss/seam/test/integration/faces/ExceptionRedirectTest.java
===================================================================
--- branches/enterprise/WFK-2_1/seam-integration-tests/src/test/java/org/jboss/seam/test/integration/faces/ExceptionRedirectTest.java	2013-06-05 11:27:19 UTC (rev 15550)
+++ branches/enterprise/WFK-2_1/seam-integration-tests/src/test/java/org/jboss/seam/test/integration/faces/ExceptionRedirectTest.java	2013-06-05 11:34:38 UTC (rev 15551)
@@ -18,6 +18,7 @@
 import org.jboss.seam.annotations.Scope;
 import org.jboss.seam.test.integration.Deployments;
 import org.jboss.shrinkwrap.api.Archive;
+import org.jboss.shrinkwrap.api.spec.WebArchive;
 import org.jboss.shrinkwrap.api.asset.StringAsset;
 import org.junit.Test;
 import org.junit.runner.RunWith;
@@ -46,8 +47,9 @@
    public static Archive<?> createDeployment()
    {
       // This is a client test, use a real (non-mocked) Seam deployment
-      return Deployments.realSeamDeployment()
-            .addClasses(TestComponent.class, PageScopedComponent.class)
+      WebArchive war= Deployments.realSeamDeployment();
+      war.delete("WEB-INF/pages.xml");
+      war.addClasses(TestComponent.class, PageScopedComponent.class)
             .addAsWebResource(new StringAsset(
                   "<html xmlns=\"http://www.w3.org/1999/xhtml\"" +
                   " xmlns:h=\"http://java.sun.com/jsf/html\"" +
@@ -79,10 +81,12 @@
                   "<pages xmlns=\"http://jboss.org/schema/seam/pages\"" +
                   " xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"" +
                   " xsi:schemaLocation=\"http://jboss.org/schema/seam/pages http://jboss.org/schema/seam/pages-2.3.xsd\">\n" +
-                  "<exception class=\"org.jboss.seam.test.integration.faces.ExceptionRedirectTest.TestException\">" + 
+                  "<exception class=\"org.jboss.seam.test.integration.faces.ExceptionRedirectTest$TestException\">" + 
                    "<redirect view-id=\"/error.xhtml\">"+
                    "</redirect>"+
                    "</exception></pages>"), "pages.xml");
+
+        return war;
    }
    
    public static class TestException extends Exception



More information about the seam-commits mailing list