deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-505 ClientWindowRenderMode#CLIENTWINDOW as default mode for tests
Date Tue, 21 Jan 2014 08:07:23 GMT
Updated Branches:
  refs/heads/master 1bd08a2c7 -> b690a2af2


DELTASPIKE-505 ClientWindowRenderMode#CLIENTWINDOW as default mode for tests


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/b690a2af
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/b690a2af
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/b690a2af

Branch: refs/heads/master
Commit: b690a2af25bb7f3ceafda7688c3ee85418ef25b2
Parents: 1bd08a2
Author: gpetracek <gpetracek@apache.org>
Authored: Tue Jan 21 09:00:48 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Tue Jan 21 09:06:54 2014 +0100

----------------------------------------------------------------------
 .../jsf/impl/config/TestJsfModuleConfig.java    | 21 ++++++++++++++++++++
 .../test/jsf/impl/message/JsfMessageTest.java   |  2 ++
 .../impl/scope/mapped/MappedJsfContextTest.java |  2 ++
 .../impl/scope/view/ViewScopedContextTest.java  |  2 ++
 .../scope/window/WindowScopedContextTest.java   |  2 ++
 5 files changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b690a2af/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/config/TestJsfModuleConfig.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/config/TestJsfModuleConfig.java
b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/config/TestJsfModuleConfig.java
new file mode 100644
index 0000000..32ab3f8
--- /dev/null
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/config/TestJsfModuleConfig.java
@@ -0,0 +1,21 @@
+package org.apache.deltaspike.test.jsf.impl.config;
+
+import org.apache.deltaspike.jsf.api.config.JsfModuleConfig;
+import org.apache.deltaspike.jsf.spi.scope.window.ClientWindowConfig;
+
+import javax.enterprise.context.ApplicationScoped;
+import javax.enterprise.inject.Specializes;
+
+@Specializes
+@ApplicationScoped
+public class TestJsfModuleConfig extends JsfModuleConfig
+{
+    private static final long serialVersionUID = -7188892423502607762L;
+
+    @Override
+    public ClientWindowConfig.ClientWindowRenderMode getDefaultWindowMode()
+    {
+        //TODO check issue with LAZY
+        return ClientWindowConfig.ClientWindowRenderMode.CLIENTWINDOW;
+    }
+}

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b690a2af/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/message/JsfMessageTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/message/JsfMessageTest.java
b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/message/JsfMessageTest.java
index e1579cb..dfc8ac0 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/message/JsfMessageTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/message/JsfMessageTest.java
@@ -22,6 +22,7 @@ package org.apache.deltaspike.test.jsf.impl.message;
 import java.net.URL;
 
 import org.apache.deltaspike.test.category.WebProfileCategory;
+import org.apache.deltaspike.test.jsf.impl.config.TestJsfModuleConfig;
 import org.apache.deltaspike.test.jsf.impl.message.beans.JsfMessageBackingBean;
 import org.apache.deltaspike.test.jsf.impl.util.ArchiveUtils;
 import org.jboss.arquillian.container.test.api.Deployment;
@@ -62,6 +63,7 @@ public class JsfMessageTest
         return ShrinkWrap
                 .create(WebArchive.class, "jsfMessageTest.war")
                 .addPackage(JsfMessageBackingBean.class.getPackage())
+                .addClass(TestJsfModuleConfig.class)
                 .addAsResource("jsfMessageTest/UserMessage_en.properties")
                 .addAsResource("jsfMessageTest/UserMessage_de.properties")
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b690a2af/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/mapped/MappedJsfContextTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/mapped/MappedJsfContextTest.java
b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/mapped/MappedJsfContextTest.java
index 169b16e..07bab1a 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/mapped/MappedJsfContextTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/mapped/MappedJsfContextTest.java
@@ -22,6 +22,7 @@ package org.apache.deltaspike.test.jsf.impl.scope.mapped;
 import java.net.URL;
 
 import org.apache.deltaspike.test.category.WebProfileCategory;
+import org.apache.deltaspike.test.jsf.impl.config.TestJsfModuleConfig;
 import org.apache.deltaspike.test.jsf.impl.scope.mapped.beans.JsfApplicationScopedBackingBean;
 import org.apache.deltaspike.test.jsf.impl.util.ArchiveUtils;
 import org.jboss.arquillian.container.test.api.Deployment;
@@ -62,6 +63,7 @@ public class MappedJsfContextTest
         return ShrinkWrap
                 .create(WebArchive.class, "mappedJsfContetxtTest.war")
                 .addPackage(JsfApplicationScopedBackingBean.class.getPackage())
+                .addClass(TestJsfModuleConfig.class)
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeSecurityArchive())
                 .addAsWebInfResource("default/WEB-INF/web.xml", "web.xml")

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b690a2af/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
index 3a3276d..909b3bb 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/view/ViewScopedContextTest.java
@@ -21,6 +21,7 @@ package org.apache.deltaspike.test.jsf.impl.scope.view;
 
 import java.net.URL;
 
+import org.apache.deltaspike.test.jsf.impl.config.TestJsfModuleConfig;
 import org.apache.deltaspike.test.jsf.impl.scope.view.beans.ViewScopedBackingBean;
 import org.apache.deltaspike.test.jsf.impl.util.ArchiveUtils;
 import org.apache.deltaspike.test.category.WebProfileCategory;
@@ -64,6 +65,7 @@ public class ViewScopedContextTest
         return ShrinkWrap
                 .create(WebArchive.class, "viewScopedContextTest.war")
                 .addPackage(ViewScopedBackingBean.class.getPackage())
+                .addClass(TestJsfModuleConfig.class)
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeSecurityArchive())
                 .addAsWebInfResource("default/WEB-INF/web.xml", "web.xml")

http://git-wip-us.apache.org/repos/asf/deltaspike/blob/b690a2af/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
index a6e97cb..79c91a4 100644
--- a/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
+++ b/deltaspike/modules/jsf/impl/src/test/java/org/apache/deltaspike/test/jsf/impl/scope/window/WindowScopedContextTest.java
@@ -23,6 +23,7 @@ import java.net.URL;
 import java.util.logging.Logger;
 
 import org.apache.deltaspike.test.category.WebProfileCategory;
+import org.apache.deltaspike.test.jsf.impl.config.TestJsfModuleConfig;
 import org.apache.deltaspike.test.jsf.impl.scope.window.beans.WindowScopedBackingBean;
 import org.apache.deltaspike.test.jsf.impl.util.ArchiveUtils;
 import org.jboss.arquillian.container.test.api.Deployment;
@@ -66,6 +67,7 @@ public class WindowScopedContextTest
         return ShrinkWrap
                 .create(WebArchive.class, "windowScopedContextTest.war")
                 .addPackage(WindowScopedBackingBean.class.getPackage())
+                .addClass(TestJsfModuleConfig.class)
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeCoreAndJsfArchive())
                 .addAsLibraries(ArchiveUtils.getDeltaSpikeSecurityArchive())
                 .addAsWebInfResource("default/WEB-INF/web.xml", "web.xml")


Mime
View raw message