1 package org.testng.junit; 2 3 import java.util.Collection; 4 import java.util.List; 5 6 import org.testng.IInvokedMethodListener; 7 import org.testng.ITestNGMethod; 8 import org.testng.internal.ITestResultNotifier; 9 10 11 /** 12 * An abstraction interface over JUnit test runners. 13 * 14 * @author <a href='mailto:the_mindstorm@evolva.ro'>Alexandru Popescu</a> 15 */ 16 public interface IJUnitTestRunner { 17 setInvokedMethodListeners(Collection<IInvokedMethodListener> listener)18 void setInvokedMethodListeners(Collection<IInvokedMethodListener> listener); 19 setTestResultNotifier(ITestResultNotifier notifier)20 void setTestResultNotifier(ITestResultNotifier notifier); 21 run(Class junitTestClass, String... methods)22 void run(Class junitTestClass, String... methods); 23 getTestMethods()24 List<ITestNGMethod> getTestMethods(); 25 26 } 27