tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anat...@apache.org
Subject incubator-tamaya git commit: Added test for createConfiguration, removed markers.
Date Tue, 21 Mar 2017 23:38:55 GMT
Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 32661ef7a -> ca19d2d42


Added test for createConfiguration, removed markers.


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

Branch: refs/heads/master
Commit: ca19d2d42e4eccfef8cb1b04a53d1c6061636bad
Parents: 32661ef
Author: anatole <anatole@apache.org>
Authored: Wed Mar 22 00:38:47 2017 +0100
Committer: anatole <anatole@apache.org>
Committed: Wed Mar 22 00:38:47 2017 +0100

----------------------------------------------------------------------
 .../core/internal/DefaultConfigurationProviderTest.java     | 9 +++++++++
 1 file changed, 9 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/ca19d2d4/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java
----------------------------------------------------------------------
diff --git a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java
b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java
index b5fb80c..2f45896 100644
--- a/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java
+++ b/code/core/src/test/java/org/apache/tamaya/core/internal/DefaultConfigurationProviderTest.java
@@ -18,6 +18,7 @@
  */
 package org.apache.tamaya.core.internal;
 
+import org.apache.tamaya.spi.ConfigurationContext;
 import org.junit.Test;
 
 import static org.junit.Assert.*;
@@ -38,6 +39,14 @@ public class DefaultConfigurationProviderTest {
     }
 
     @Test
+    public void createConfiguration() throws Exception {
+        ConfigurationContext ctx = new DefaultConfigurationContextBuilder().build();
+        assertNotNull(new DefaultConfigurationProvider().createConfiguration(ctx));
+        assertEquals(ctx,
+                new DefaultConfigurationProvider().createConfiguration(ctx).getContext());
+    }
+
+    @Test
     public void getConfigurationContext() throws Exception {
         assertNotNull(new DefaultConfigurationProvider().getConfigurationContext());
     }


Mime
View raw message