01: package test.methodselectors;
02:
03: import java.util.List;
04:
05: import org.testng.IMethodSelector;
06: import org.testng.IMethodSelectorContext;
07: import org.testng.ITestNGMethod;
08:
09: public class AllTestsMethodSelector implements IMethodSelector {
10:
11: public boolean includeMethod(IMethodSelectorContext context,
12: ITestNGMethod method, boolean isTestMethod) {
13: context.setStopped(true);
14: return true;
15: }
16:
17: private static void ppp(String s) {
18: System.out.println("[MyMethodSelector] " + s);
19: }
20:
21: public void setTestMethods(List<ITestNGMethod> testMethods) {
22: // TODO Auto-generated method stub
23:
24: }
25:
26: }
|