deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject [1/2] git commit: fix broken unit test when testing remote containers
Date Sun, 08 Sep 2013 21:28:40 GMT
Updated Branches:
  refs/heads/master 156c9987b -> 1e963ac59


fix broken unit test when testing remote containers


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

Branch: refs/heads/master
Commit: fac86445f596bd7d688b5a25ae1d61840bfd9ecb
Parents: 156c998
Author: Mark Struberg <struberg@apache.org>
Authored: Sun Sep 8 23:01:46 2013 +0200
Committer: Mark Struberg <struberg@apache.org>
Committed: Sun Sep 8 23:01:46 2013 +0200

----------------------------------------------------------------------
 .../deltaspike/test/api/config/ConfigResolverTest.java       | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/fac86445/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/config/ConfigResolverTest.java
----------------------------------------------------------------------
diff --git a/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/config/ConfigResolverTest.java
b/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/config/ConfigResolverTest.java
index 6aa81da..1f23a21 100644
--- a/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/config/ConfigResolverTest.java
+++ b/deltaspike/core/api/src/test/java/org/apache/deltaspike/test/api/config/ConfigResolverTest.java
@@ -23,6 +23,7 @@ import org.apache.deltaspike.core.api.projectstage.ProjectStage;
 import org.apache.deltaspike.core.spi.config.ConfigFilter;
 import org.apache.deltaspike.core.util.ProjectStageProducer;
 import org.junit.Assert;
+import org.junit.Before;
 import org.junit.Test;
 
 import java.util.List;
@@ -30,6 +31,13 @@ import java.util.List;
 public class ConfigResolverTest
 {
     private static final String DEFAULT_VALUE = "defaultValue";
+
+    @Before
+    public void init()
+    {
+        ProjectStageProducer.setProjectStage(ProjectStage.UnitTest);
+    }
+
     @Test
     public void testOverruledValue()
     {


Mime
View raw message