This is an automated email from the ASF dual-hosted git repository.

kwin pushed a commit to branch bugfix/SLING-11866
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-installer-factory-configuration.git

commit ed2d9b20c72a1cc1ede9bf997ec67ff2879b247a
Author: Konrad Windszus <[email protected]>
AuthorDate: Mon May 8 19:59:13 2023 +0200

    SLING-11866 add failing test case to show that not all default
    properties are stripped
---
 .../installer/factories/configuration/impl/MetatypeHandlerTest.java    | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 
a/src/test/java/org/apache/sling/installer/factories/configuration/impl/MetatypeHandlerTest.java
 
b/src/test/java/org/apache/sling/installer/factories/configuration/impl/MetatypeHandlerTest.java
index 51c906b..1bca852 100644
--- 
a/src/test/java/org/apache/sling/installer/factories/configuration/impl/MetatypeHandlerTest.java
+++ 
b/src/test/java/org/apache/sling/installer/factories/configuration/impl/MetatypeHandlerTest.java
@@ -94,6 +94,7 @@ public class MetatypeHandlerTest {
 
          final Dictionary<String, Object> props = new Hashtable<>();
          props.put("a", "2");
+         props.put("b", "5"); // property having a value equal to the same 
named default property
          props.put("c", "3");
          props.put("d", 4);
          props.put("e", 5);
@@ -107,7 +108,7 @@ public class MetatypeHandlerTest {
          handler.updateConfiguration(null, "my.pid", props, defaultProps);
 
          assertEquals(3, props.size());
-         assertEquals("2", props.get("a"));      
+         assertEquals("2", props.get("a"));
          assertEquals(4, props.get("d"));
          assertEquals(Arrays.asList("/a", "/b"), props.get("g"));  
     }

Reply via email to