Skip to content

Commit

Permalink
use testng from TestingOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverlietz committed Mar 25, 2024
1 parent 1e0ab70 commit f385749
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
import static org.ops4j.pax.exam.CoreOptions.options;
import static org.ops4j.pax.exam.CoreOptions.systemProperty;
import static org.ops4j.pax.exam.options.libraries.TestingOptions.testng;
import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertNotNull;

Expand All @@ -45,7 +46,7 @@ public Option[] config() {

mavenBundle("org.ops4j.pax.exam.samples", "pax-exam-sample8-ds", "4.2.0"),
mavenBundle("org.apache.felix", "org.apache.felix.scr", "1.6.2"),
mavenBundle("org.testng", "testng", "6.9.10"),
testng(),
systemProperty("osgi.console").value("6666"));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import static org.ops4j.pax.exam.CoreOptions.propagateSystemProperty;
import static org.ops4j.pax.exam.CoreOptions.systemProperty;
import static org.ops4j.pax.exam.CoreOptions.url;
import static org.ops4j.pax.exam.options.libraries.TestingOptions.testng;

import org.ops4j.pax.exam.ConfigurationFactory;
import org.ops4j.pax.exam.Option;
Expand All @@ -33,7 +34,7 @@ public class InjectConfigurationFactory implements ConfigurationFactory {
public Option[] createConfiguration() {
return options(
propagateSystemProperty("pax.exam.regression.rmi"),
mavenBundle("org.testng", "testng", "6.9.10"),
testng(),
url("reference:file:" + PathUtils.getBaseDir() + "/target/pax-exam-sample9-pde/"),

systemProperty("osgi.console").value("6666"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import static org.ops4j.pax.exam.CoreOptions.mavenBundle;
import static org.ops4j.pax.exam.CoreOptions.options;
import static org.ops4j.pax.exam.CoreOptions.systemProperty;
import static org.ops4j.pax.exam.options.libraries.TestingOptions.testng;
import static org.testng.Assert.assertNotNull;

import javax.inject.Inject;
Expand All @@ -42,7 +43,7 @@ public class TestNGExamTest {
public Option[] config() {
return options(

mavenBundle("org.testng", "testng", "6.9.10"),
testng(),
systemProperty("osgi.console").value("6666"));
}

Expand Down

0 comments on commit f385749

Please sign in to comment.