• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test.inject;
2 
3 import org.testng.Assert;
4 import org.testng.ITestContext;
5 import org.testng.ITestNGMethod;
6 import org.testng.annotations.Test;
7 
8 public class Sample {
9 
10   @Test
f(ITestContext tc)11   public void f(ITestContext tc) {
12     Assert.assertNotNull(tc);
13     ITestNGMethod[] allMethods = tc.getAllTestMethods();
14     Assert.assertEquals(allMethods.length, 1);
15     Assert.assertEquals(allMethods[0].getMethod().getName(),"f");
16 
17   }
18 }
19