Improving test support to check for empty string values
diff --git a/src/test/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderTest.java b/src/test/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderTest.java
index 5004254..2d71115 100644
--- a/src/test/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderTest.java
+++ b/src/test/java/org/apache/sling/jcr/contentloader/internal/BundleContentLoaderTest.java
@@ -98,13 +98,22 @@
}
@Test
- public void emptyRunmode() throws Exception {
+ public void nullRunmode() throws Exception {
Bundle mockBundle = newBundleWithInitialContent("SLING-INF/libs/app/empty;path:=/libs/app/empty");
contentLoader.registerBundle(context.resourceResolver().adaptTo(Session.class), mockBundle, false);
Resource imported = context.resourceResolver().getResource("/libs/app/empty");
assertThat("Resource was not imported", imported, notNullValue());
}
+
+ @Test
+ public void emptyRunmode() throws Exception {
+ Bundle mockBundle = newBundleWithInitialContent("SLING-INF/libs/app/empty;path:=/libs/app/empty;skipRunmode:=");
+ contentLoader.registerBundle(context.resourceResolver().adaptTo(Session.class), mockBundle, false);
+ Resource imported = context.resourceResolver().getResource("/libs/app/empty");
+ assertThat("Resource was not imported", imported, notNullValue());
+ }
+
@Test
public void loadContentWithRootPath() throws Exception {