01: package test.tmp;
02:
03: import org.testng.annotations.AfterTest;
04: import org.testng.annotations.Test;
05:
06: public class A {
07:
08: @AfterTest(alwaysRun=true)
09: public void at() {
10: ppp("AFTER TEST");
11: }
12:
13: @Test
14: public void f() {
15: throw new RuntimeException();
16: }
17:
18: // @Test(groups = "foo")
19: // public void a() {
20: // System.out.println( "a" );
21: // }
22:
23: private static void ppp(String s) {
24: System.out.println("[A] " + s);
25: }
26: }
|