01: package test.order;
02:
03: public class NormalTestWithConfiguration {
04: /**
05: * @testng.before-class
06: *
07: */
08: public void beforeTestClass() {
09: System.out.println("NTWC.beforeTestClass");
10: throw new RuntimeException(
11: "should stop everything at class level");
12: }
13:
14: /**
15: * @testng.before-method
16: */
17: public void beforeTestMethod() {
18: System.out.println("NTWC.beforeTestMethod");
19: }
20:
21: /**
22: * @testng.test
23: */
24: public void test1() {
25: System.out.println("NTWC.test1");
26: }
27:
28: /**
29: * @testng.test
30: */
31: public void test2() {
32: System.out.println("NTWC.test2");
33: }
34:
35: /**
36: * @testng.after-method
37: *
38: */
39: public void afterTestMethod() {
40: System.out.println("NTWC.afterTestMethod");
41: }
42:
43: /**
44: * @testng.after-class
45: */
46: public void afterTestClass() {
47: System.out.println("NTWC.afterTestClass");
48: }
49: }
|