01: package test.order;
02:
03: public class TestLevelConfiguration {
04: /**
05: * @testng.before-test
06: */
07: public void beforeTest() {
08: System.out.println("TLC.beforeTest");
09: throw new RuntimeException("should stop everythhing");
10: }
11:
12: /**
13: * @testng.after-test alwaysRun="true"
14: */
15: public void afterTest() {
16: System.out.println("TLC.afterTest");
17: }
18: }
|