blob: 7a5e1d5220eafd2cdd1a2b0d86ef401c5eebf8e4 [file] [log] [blame]
package test.testng317;
import org.testng.annotations.Test;
public class ClassB {
@Test
public void sameNameAA(){
printMethod();
}
@Test (dependsOnMethods="sameNameAA")
public void uniqueNameBB(){
printMethod();
}
@Test (dependsOnMethods="uniqueNameBB")
public void uniqueNameCC(){
printMethod();
}
@Test (dependsOnMethods="uniqueNameCC")
public void uniqueNameDD(){
printMethod();
}
@Test (dependsOnMethods="uniqueNameDD")
public void sameNameE(){
printMethod();
}
public void nullTest(){
printMethod();
}
protected void printMethod() {
StackTraceElement[] sTrace = new Exception().getStackTrace();
String className = sTrace[0].getClassName();
String methodName = sTrace[1].getMethodName();
System.out.printf("*********** executing --- %s %s\n", className, methodName);
VerifyTest.m_methods.add(className + "." + methodName);
}
}