You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ss...@apache.org on 2021/09/05 15:50:29 UTC

[sling-org-apache-sling-testing-caconfig-mock-plugin] branch master updated (7e4c126 -> f9edfe7)

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

sseifert pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-caconfig-mock-plugin.git.


    from 7e4c126  SLING-10676 - remove SECURITY.md which is not needed
     new d46bfb9  cosmetic: simplify test code
     new f9edfe7  update sling-mock dependency

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 pom.xml                                                            | 4 ++--
 .../sling/testing/mock/caconfig/MockContextAwareConfigTest.java    | 7 +++----
 2 files changed, 5 insertions(+), 6 deletions(-)

[sling-org-apache-sling-testing-caconfig-mock-plugin] 02/02: update sling-mock dependency

Posted by ss...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-caconfig-mock-plugin.git

commit f9edfe7622843ef9940c716c17e0dbeb775bab4f
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Sun Sep 5 17:49:52 2021 +0200

    update sling-mock dependency
---
 pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index 690d2c1..d18c2cd 100644
--- a/pom.xml
+++ b/pom.xml
@@ -91,14 +91,14 @@
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.testing.sling-mock.core</artifactId>
-            <version>3.0.3-SNAPSHOT</version>
+            <version>3.1.0</version>
             <scope>compile</scope>
         </dependency>
 
         <dependency>
             <groupId>org.apache.sling</groupId>
             <artifactId>org.apache.sling.testing.sling-mock.junit4</artifactId>
-            <version>3.0.3-SNAPSHOT</version>
+            <version>3.1.0</version>
             <scope>test</scope>
         </dependency>
         <dependency>

[sling-org-apache-sling-testing-caconfig-mock-plugin] 01/02: cosmetic: simplify test code

Posted by ss...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sseifert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-caconfig-mock-plugin.git

commit d46bfb90f5b050dd2c21916cb1e2be3aef13c5cf
Author: Stefan Seifert <st...@users.noreply.github.com>
AuthorDate: Sun Sep 5 17:47:27 2021 +0200

    cosmetic: simplify test code
---
 .../sling/testing/mock/caconfig/MockContextAwareConfigTest.java    | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/sling/testing/mock/caconfig/MockContextAwareConfigTest.java b/src/test/java/org/apache/sling/testing/mock/caconfig/MockContextAwareConfigTest.java
index ecd1bbb..412c04a 100644
--- a/src/test/java/org/apache/sling/testing/mock/caconfig/MockContextAwareConfigTest.java
+++ b/src/test/java/org/apache/sling/testing/mock/caconfig/MockContextAwareConfigTest.java
@@ -24,7 +24,6 @@ import static org.junit.Assert.assertNotNull;
 
 import java.util.Collection;
 import java.util.Iterator;
-import java.util.Map;
 
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.caconfig.ConfigurationBuilder;
@@ -58,9 +57,9 @@ public class MockContextAwareConfigTest {
         MockContextAwareConfig.writeConfiguration(context, "/content/region/site", SimpleConfig.class,
                 "stringParam", "value1");
 
-        MockContextAwareConfig.writeConfigurationCollection(context, "/content/region/site", ListConfig.class,
-                ImmutableList.of((Map<String, Object>) ImmutableMap.<String, Object> of("stringParam", "value1"),
-                        (Map<String, Object>) ImmutableMap.<String, Object> of("stringParam", "value2")));
+        MockContextAwareConfig.writeConfigurationCollection(context, "/content/region/site", ListConfig.class, ImmutableList.of(
+                ImmutableMap.<String,Object>of("stringParam", "value1"),
+                ImmutableMap.<String,Object>of("stringParam", "value2")));
     }
 
     @Test