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

rombert pushed a commit to annotated tag org.apache.sling.settings-1.2.2
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-settings.git

commit 4dc89f8d4fa81976a3e7a7c7d7147ab028ac9418
Author: Bertrand Delacretaz <[email protected]>
AuthorDate: Thu Nov 22 13:47:25 2012 +0000

    SLING-2662 - test case with empty run modes string
    
    git-svn-id: 
https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/settings@1412550
 13f79535-47bb-0310-9956-ffa450edef68
---
 src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java 
b/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
index 645b23a..36a2954 100644
--- a/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
+++ b/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
@@ -80,6 +80,12 @@ public class RunModeImplTest {
         assertActive(rm, false, "b", "c", "e", "f");
     }
 
+    @org.junit.Test public void testEmptyRunModesWithOptions() {
+        final SlingSettingsService rm = new SlingSettingsServiceImpl(new 
BundleContextMock("", "a,b,c|d,e,f", null));
+        assertActive(rm, true, "a", "d");
+        assertActive(rm, false, "b", "c", "e", "f");
+    }
+
     @org.junit.Test public void testOptionsSelected() {
         final SlingSettingsService rm = new SlingSettingsServiceImpl(new 
BundleContextMock("foo,bar,c,e", "a,b,c|d,e,f", null));
         assertActive(rm, true, "foo", "bar", "c", "e");

-- 
To stop receiving notification emails like this one, please contact
"[email protected]" <[email protected]>.

Reply via email to