You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tamaya.apache.org by an...@apache.org on 2015/01/04 21:13:35 UTC

incubator-tamaya git commit: TAMAYA-42: Added system and env properties to property sources and added nice printout.

Repository: incubator-tamaya
Updated Branches:
  refs/heads/master 20907d77f -> 69be0dea4


TAMAYA-42: Added system and env properties to property sources and added nice printout.


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

Branch: refs/heads/master
Commit: 69be0dea4c383b9cfa8c49c8504a0accbed09762
Parents: 20907d7
Author: anatole <an...@apache.org>
Authored: Sun Jan 4 21:12:46 2015 +0100
Committer: anatole <an...@apache.org>
Committed: Sun Jan 4 21:12:46 2015 +0100

----------------------------------------------------------------------
 core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java | 4 ++++
 .../META-INF/services/org.apache.tamaya.spi.PropertySource       | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/69be0dea/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java b/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java
index adcaf24..2e93558 100644
--- a/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java
+++ b/core/src/test/java/org/apache/tamaya/core/ConfigurationTest.java
@@ -48,6 +48,10 @@ public class ConfigurationTest {
         System.out.println("name3: " + Configuration.current().get("name3").get());
         System.out.println("name4: " + Configuration.current().get("name4").get());
         System.out.println("name5: " + Configuration.current().get("name5").orElse(null));
+
+        System.out.println("ALL :");
+        Configuration.current().getProperties().entrySet().forEach(e ->
+                System.out.println("   " + e.getKey()+" = " + e.getValue()));
     }
 
 

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/69be0dea/core/src/test/resources/META-INF/services/org.apache.tamaya.spi.PropertySource
----------------------------------------------------------------------
diff --git a/core/src/test/resources/META-INF/services/org.apache.tamaya.spi.PropertySource b/core/src/test/resources/META-INF/services/org.apache.tamaya.spi.PropertySource
index 2b774a9..1effc9e 100644
--- a/core/src/test/resources/META-INF/services/org.apache.tamaya.spi.PropertySource
+++ b/core/src/test/resources/META-INF/services/org.apache.tamaya.spi.PropertySource
@@ -16,4 +16,6 @@
 # specific language governing permissions and limitations
 # under the License.
 #
-org.apache.tamaya.core.testdata.TestPropertyDefaultSource
\ No newline at end of file
+org.apache.tamaya.core.testdata.TestPropertyDefaultSource
+org.apache.tamaya.core.propertysource.SystemPropertySource
+org.apache.tamaya.core.propertysource.EnvironmentPropertySource
\ No newline at end of file