You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 10:20:04 UTC
[sling-org-apache-sling-testing-paxexam] 24/48: add Option
testBundle
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.testing.paxexam-0.0.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-testing-paxexam.git
commit ce0a0c6b38a8ed1b9ea1f504bab907c292c848b7
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Wed Jul 27 20:31:44 2016 +0000
add Option testBundle
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/testing/org.apache.sling.testing.paxexam@1754342 13f79535-47bb-0310-9956-ffa450edef68
---
src/main/java/org/apache/sling/testing/paxexam/TestSupport.java | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java b/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java
index dace320..26bb405 100644
--- a/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java
+++ b/src/main/java/org/apache/sling/testing/paxexam/TestSupport.java
@@ -18,6 +18,7 @@
*/
package org.apache.sling.testing.paxexam;
+import java.io.File;
import java.io.IOException;
import java.net.ServerSocket;
import java.util.Dictionary;
@@ -28,6 +29,7 @@ import org.ops4j.pax.exam.CoreOptions;
import org.ops4j.pax.exam.Option;
import org.osgi.service.cm.ConfigurationAdmin;
+import static org.ops4j.pax.exam.CoreOptions.bundle;
import static org.ops4j.pax.exam.CoreOptions.composite;
import static org.ops4j.pax.exam.CoreOptions.keepCaches;
import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
@@ -78,4 +80,10 @@ public abstract class TestSupport {
);
}
+ protected Option testBundle(final String systemProperty) {
+ final String filename = System.getProperty(systemProperty);
+ final File file = new File(filename);
+ return bundle(file.toURI().toString());
+ }
+
}
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.