01: package test.confordering.subpckg1;
02:
03: import test.confordering.ConfigurationMethodOrderingTest;
04:
05: public class Parent {
06: /**
07: * @testng.before-class
08: */
09: public void parentBeforeTestClass() {
10: ConfigurationMethodOrderingTest.LOG
11: .add("parentBeforeTestClass");
12: }
13:
14: /**
15: * @testng.before-class
16: */
17: public void inheritBeforeTestClass() {
18: ConfigurationMethodOrderingTest.LOG
19: .add("parentInheritBeforeTestClass");
20: }
21:
22: /**
23: * @testng.before-method
24: */
25: public void parentBeforeTestMethod() {
26: ConfigurationMethodOrderingTest.LOG
27: .add("parentBeforeTestMethod");
28: }
29:
30: /**
31: * @testng.before-method
32: */
33: public void inheritBeforeTestMethod() {
34: ConfigurationMethodOrderingTest.LOG
35: .add("parentInheritBeforeTestMethod");
36: }
37:
38: /**
39: * @testng.test
40: */
41: public void parentTestMethod() {
42: ConfigurationMethodOrderingTest.LOG.add("parentTestMethod");
43: }
44:
45: /**
46: * @testng.after-method
47: */
48: public void parentAfterTestMethod() {
49: ConfigurationMethodOrderingTest.LOG
50: .add("parentAfterTestMethod");
51: }
52:
53: /**
54: * @testng.after-method
55: */
56: public void inheritAfterTestMethod() {
57: ConfigurationMethodOrderingTest.LOG
58: .add("parentInheritAfterTestMethod");
59: }
60:
61: /**
62: * @testng.after-class
63: */
64: public void parentAfterTestClass() {
65: ConfigurationMethodOrderingTest.LOG.add("parentAfterTestClass");
66: }
67:
68: /**
69: * @testng.after-class
70: */
71: public void inheritAfterTestClass() {
72: ConfigurationMethodOrderingTest.LOG
73: .add("parentInheritAfterTestClass");
74: }
75: }
|