• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.methodselectors;
2 
3 import org.testng.IMethodSelector;
4 import org.testng.IMethodSelectorContext;
5 import org.testng.ITestNGMethod;
6 
7 import java.util.List;
8 
9 public class NoTestSelector implements IMethodSelector {
10 
11   /**
12    *
13    */
14   private static final long serialVersionUID = -7751190578710846487L;
15 
16   @Override
includeMethod(IMethodSelectorContext context, ITestNGMethod method, boolean isTestMethod)17   public boolean includeMethod(IMethodSelectorContext context,
18       ITestNGMethod method, boolean isTestMethod)
19   {
20     ppp("NOTEST RETURNING FALSE FOR " + method);
21     return false;
22   }
23 
24   @Override
setTestMethods(List<ITestNGMethod> testMethods)25   public void setTestMethods(List<ITestNGMethod> testMethods) {
26   }
27 
ppp(String s)28   private static void ppp(String s) {
29 //    System.out.println("[NoTestSelector] " + s);
30   }
31 }
32