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 NoTestSelector implements IMethodSelector {
10:
11: public boolean includeMethod(IMethodSelectorContext context,
12: ITestNGMethod method, boolean isTestMethod) {
13: ppp("NOTEST RETURNING FALSE FOR " + method);
14: return false;
15: }
16:
17: public void setTestMethods(List<ITestNGMethod> testMethods) {
18: }
19:
20: private static void ppp(String s) {
21: System.out.println("[NoTestSelector] " + s);
22: }
23: }
|