tamaya-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ple...@apache.org
Subject [11/12] incubator-tamaya git commit: TAMAYA-60 Improved tests a little bit.
Date Sun, 08 Feb 2015 21:03:50 GMT
TAMAYA-60 Improved tests a little bit.


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

Branch: refs/heads/master
Commit: b51df054ad1532e2042f1d503c3fe279e7a6c9c3
Parents: 2432926
Author: Oliver B. Fischer <plexus@apache.org>
Authored: Sun Feb 8 13:30:33 2015 +0100
Committer: Oliver B. Fischer <plexus@apache.org>
Committed: Sun Feb 8 13:30:33 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/tamaya/builder/ConfigurationBuilderTest.java | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/b51df054/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
----------------------------------------------------------------------
diff --git a/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
b/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
index 8d710f1..5c2f2b4 100644
--- a/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
+++ b/modules/builder/src/test/java/org/apache/tamaya/builder/ConfigurationBuilderTest.java
@@ -431,6 +431,7 @@ public class ConfigurationBuilderTest {
                                       .build();
 
 
+        assertThat(builder.isPropertySourcesLoadingEnabled(), is(true));
         assertThat(config.get("tps_a"), Matchers.equalTo("A"));
     }
 
@@ -443,6 +444,7 @@ public class ConfigurationBuilderTest {
                                       .build();
 
 
+        assertThat(builder.isPropertySourcesLoadingEnabled(), is(false));
         assertThat(config.get("tps_c"), Matchers.nullValue());
     }
 
@@ -482,6 +484,7 @@ public class ConfigurationBuilderTest {
                                       .enableProvidedPropertySourceProviders()
                                       .build();
 
+        assertThat(builder.isPropertySourceProvidersLoadingEnabled(), is(true));
         assertThat(config.get("tpsp_x"), Matchers.equalTo("X"));
         assertThat(config.get("tpsp_y"), Matchers.equalTo("Y"));
     }
@@ -494,6 +497,7 @@ public class ConfigurationBuilderTest {
                                       .disableProvidedPropertySourceProviders()
                                       .build();
 
+        assertThat(builder.isPropertySourceProvidersLoadingEnabled(), is(false));
         assertThat(config.get("tpsp_x"), nullValue());
         assertThat(config.get("tpsp_x"), nullValue());
     }


Mime
View raw message