1 package test.dataprovider; 2 3 import org.testng.annotations.Test; 4 5 import test.BaseTest; 6 7 public class ClassTest extends BaseTest { 8 @Test(groups = { "current" }) includeMethodsOnly()9 public void includeMethodsOnly() { 10 addClass(ClassSampleTest.class.getName()); 11 run(); 12 String[] passed = { 13 "f", "g" 14 }; 15 String[] failed = { 16 }; 17 verifyTests("Passed", passed, getPassedTests()); 18 verifyTests("Failed", failed, getFailedTests()); 19 } 20 } 21