diff options
Diffstat (limited to 'testng/src/mill/testng/TestNGInstance.java')
-rw-r--r-- | testng/src/mill/testng/TestNGInstance.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/testng/src/mill/testng/TestNGInstance.java b/testng/src/mill/testng/TestNGInstance.java index 9ad990e0..4cf274d3 100644 --- a/testng/src/mill/testng/TestNGInstance.java +++ b/testng/src/mill/testng/TestNGInstance.java @@ -54,19 +54,12 @@ class TestNGListener implements ITestListener{ public class TestNGInstance extends TestNG{ public TestNGInstance(Logger[] loggers, ClassLoader testClassLoader, - String[] testOptions, - String suiteName, + CommandLineArgs args, EventHandler eventHandler) { addClassLoader(testClassLoader); - try{ - this.setTestClasses(new Class[]{Class.forName(suiteName)}); - }catch(ClassNotFoundException e){ - throw new RuntimeException(e); - } this.addListener(new TestNGListener(eventHandler)); - CommandLineArgs args = new CommandLineArgs(); - new JCommander(args, testOptions); // args is an output parameter of the constructor! + configure(args); } } |