blob: 5ef90d1a916dd1a8f1bab6e9987b32930cfe3f5d [file] [log] [blame]
package test.alwaysrun;
public class ClassWithAlwaysAfterClassMethod {
/**
* @testng.configuration beforeTestClass="true"
*/
public void beforeTestMethod() {
AlwaysRunTest.LOG.append("-before");
}
/**
* @testng.test
*/
public void nonFailingTest() {
AlwaysRunTest.LOG.append("-nonfail");
}
/**
* @testng.test dependsOnMethods="nonFailingTest"
*/
public void failingTest() {
AlwaysRunTest.LOG.append("-fail");
throw new RuntimeException();
}
/**
* @testng.configuration alwaysRun="true" afterTestClass="true"
*/
public void afterTestMethod() {
AlwaysRunTest.LOG.append("-after");
}
}