incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bdelacre...@apache.org
Subject svn commit: r1412550 - /sling/trunk/bundles/extensions/settings/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
Date Thu, 22 Nov 2012 13:47:26 GMT
Author: bdelacretaz
Date: Thu Nov 22 13:47:25 2012
New Revision: 1412550

URL: http://svn.apache.org/viewvc?rev=1412550&view=rev
Log:
SLING-2662 - test case with empty run modes string

Modified:
    sling/trunk/bundles/extensions/settings/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java

Modified: sling/trunk/bundles/extensions/settings/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/settings/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java?rev=1412550&r1=1412549&r2=1412550&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/settings/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
(original)
+++ sling/trunk/bundles/extensions/settings/src/test/java/org/apache/sling/settings/impl/RunModeImplTest.java
Thu Nov 22 13:47:25 2012
@@ -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");



Mime
View raw message