TAMAYA-182: Fixed test issues.

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

Branch: refs/heads/master
Commit: d1ae885f17debb8f2dccaeaab67cce9fe091bc4e
Parents: 0ed1864
Author: anatole <anat...@apache.org>
Authored: Fri Oct 28 01:35:32 2016 +0200
Committer: anatole <anat...@apache.org>
Committed: Fri Oct 28 01:35:32 2016 +0200

----------------------------------------------------------------------
 .../core/propertysource/PropertiesFilePropertySourceTest.java    | 2 +-
 .../tamaya/core/propertysource/SimplePropertySourceTest.java     | 4 ++--
 .../tamaya/core/provider/JavaConfigurationProviderTest.java      | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/d1ae885f/code/core/src/test/java/org/apache/tamaya/core/propertysource/PropertiesFilePropertySourceTest.java
----------------------------------------------------------------------
diff --git 
a/code/core/src/test/java/org/apache/tamaya/core/propertysource/PropertiesFilePropertySourceTest.java
 
b/code/core/src/test/java/org/apache/tamaya/core/propertysource/PropertiesFilePropertySourceTest.java
index 279403e..39aeb3b 100644
--- 
a/code/core/src/test/java/org/apache/tamaya/core/propertysource/PropertiesFilePropertySourceTest.java
+++ 
b/code/core/src/test/java/org/apache/tamaya/core/propertysource/PropertiesFilePropertySourceTest.java
@@ -49,7 +49,7 @@ public class PropertiesFilePropertySourceTest {
 
     @Test
     public void testGetProperties() throws Exception {
-        Assert.assertEquals(10, 
testfilePropertySource.getProperties().size()); // double the size for .source 
values.
+        Assert.assertEquals(5, testfilePropertySource.getProperties().size()); 
// double the size for .source values.
         
Assert.assertTrue(testfilePropertySource.getProperties().containsKey("key1"));
         
Assert.assertTrue(testfilePropertySource.getProperties().containsKey("key2"));
         
Assert.assertTrue(testfilePropertySource.getProperties().containsKey("key3"));

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/d1ae885f/code/core/src/test/java/org/apache/tamaya/core/propertysource/SimplePropertySourceTest.java
----------------------------------------------------------------------
diff --git 
a/code/core/src/test/java/org/apache/tamaya/core/propertysource/SimplePropertySourceTest.java
 
b/code/core/src/test/java/org/apache/tamaya/core/propertysource/SimplePropertySourceTest.java
index 518ed18..34902fa 100644
--- 
a/code/core/src/test/java/org/apache/tamaya/core/propertysource/SimplePropertySourceTest.java
+++ 
b/code/core/src/test/java/org/apache/tamaya/core/propertysource/SimplePropertySourceTest.java
@@ -39,7 +39,7 @@ public class SimplePropertySourceTest {
         SimplePropertySource source = new SimplePropertySource(resource);
 
         assertThat(source, notNullValue());
-        assertThat(source.getProperties(), aMapWithSize(4)); // double the 
size for .source values.
+        assertThat(source.getProperties(), aMapWithSize(2)); // double the 
size for .source values.
         assertThat(source.getProperties(), hasEntry("a", "b"));
         assertThat(source.getProperties(), hasEntry("b", "1"));
 
@@ -83,6 +83,6 @@ public class SimplePropertySourceTest {
         SimplePropertySource source = new SimplePropertySource(resource);
 
         assertThat(source, notNullValue());
-        assertThat(source.getProperties(), aMapWithSize(10)); // double the 
size for .source values.
+        assertThat(source.getProperties(), aMapWithSize(5)); // double the 
size for .source values.
     }
 }

http://git-wip-us.apache.org/repos/asf/incubator-tamaya/blob/d1ae885f/code/core/src/test/java/org/apache/tamaya/core/provider/JavaConfigurationProviderTest.java
----------------------------------------------------------------------
diff --git 
a/code/core/src/test/java/org/apache/tamaya/core/provider/JavaConfigurationProviderTest.java
 
b/code/core/src/test/java/org/apache/tamaya/core/provider/JavaConfigurationProviderTest.java
index 59b9e33..41bd8a1 100644
--- 
a/code/core/src/test/java/org/apache/tamaya/core/provider/JavaConfigurationProviderTest.java
+++ 
b/code/core/src/test/java/org/apache/tamaya/core/provider/JavaConfigurationProviderTest.java
@@ -44,7 +44,7 @@ public class JavaConfigurationProviderTest {
 
         PropertySource propertySource = propertySources.iterator().next();
 
-        assertThat(propertySource.getProperties().keySet(), hasSize(10));  // 
double the size for .source values.
+        assertThat(propertySource.getProperties().keySet(), hasSize(5));  // 
double the size for .source values.
 
         for (int i = 1; i < 6; i++) {
             String key = "confkey" + i;

Reply via email to