You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2020/03/14 10:23:58 UTC

[sling-org-apache-sling-jcr-contentloader] 01/03: style

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

olli pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-contentloader.git

commit 00a5953f5249e600f7eb31faf262a323d2bdd5c4
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sat Mar 14 11:14:47 2020 +0100

    style
---
 .../org/apache/sling/jcr/contentloader/it/BasicInitialContentIT.java | 5 +++--
 .../org/apache/sling/jcr/contentloader/it/I18nInitialContentIT.java  | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/test/java/org/apache/sling/jcr/contentloader/it/BasicInitialContentIT.java b/src/test/java/org/apache/sling/jcr/contentloader/it/BasicInitialContentIT.java
index 8e3c281..7389224 100644
--- a/src/test/java/org/apache/sling/jcr/contentloader/it/BasicInitialContentIT.java
+++ b/src/test/java/org/apache/sling/jcr/contentloader/it/BasicInitialContentIT.java
@@ -36,6 +36,7 @@ import org.osgi.framework.Bundle;
 import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
+import static org.ops4j.pax.exam.CoreOptions.options;
 
 /**
  * Basic test of a bundle that provides initial content
@@ -54,10 +55,10 @@ public class BasicInitialContentIT extends ContentloaderTestSupport {
             DEFAULT_PATH_IN_BUNDLE, "folder-with-descriptor/test2.txt"
         );
         final Option bundle = buildInitialContentBundle(header, content);
-        return new Option[]{
+        return options(
             baseConfiguration(),
             bundle
-        };
+        );
     }
 
     @Test
diff --git a/src/test/java/org/apache/sling/jcr/contentloader/it/I18nInitialContentIT.java b/src/test/java/org/apache/sling/jcr/contentloader/it/I18nInitialContentIT.java
index 72a62d2..64daeee 100644
--- a/src/test/java/org/apache/sling/jcr/contentloader/it/I18nInitialContentIT.java
+++ b/src/test/java/org/apache/sling/jcr/contentloader/it/I18nInitialContentIT.java
@@ -39,6 +39,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertFalse;
 import static org.junit.Assert.assertNotNull;
 import static org.junit.Assert.assertTrue;
+import static org.ops4j.pax.exam.CoreOptions.options;
 
 /**
  * Basic test of a bundle that provides I18N initial content
@@ -55,10 +56,10 @@ public class I18nInitialContentIT extends ContentloaderTestSupport {
             DEFAULT_PATH_IN_BUNDLE, "i18n/en.json.xml"
         );
         final Option bundle = buildInitialContentBundle(header, content);
-        return new Option[]{
+        return options(
             baseConfiguration(),
             bundle
-        };
+        );
     }
 
     @Test