01: package test.confordering.subpckg2;
02:
03: import test.confordering.ConfigurationMethodOrderingTest;
04: import test.confordering.subpckg1.Parent;
05:
06: public class NonOverriddingChild extends Parent {
07: /**
08: * @testng.before-class
09: */
10: public void childBeforeTestClass() {
11: ConfigurationMethodOrderingTest.LOG.add("childBeforeTestClass");
12: }
13:
14: /**
15: * @----testng.configuration beforeTestClass="true"
16: */
17: /*public void inheritBeforeTestClass() {
18: ConfigurationMethodOrderingTest.LOG.add("childInheritBeforeTestClass");
19: }*/
20:
21: /**
22: * @testng.before-method
23: */
24: public void childBeforeTestMethod() {
25: ConfigurationMethodOrderingTest.LOG
26: .add("childBeforeTestMethod");
27: }
28:
29: /**
30: * @testng.test
31: */
32: public void childTestMethod() {
33: ConfigurationMethodOrderingTest.LOG.add("childTestMethod");
34: }
35:
36: /**
37: * @testng.after-method
38: */
39: public void childAfterTestMethod() {
40: ConfigurationMethodOrderingTest.LOG.add("childAfterTestMethod");
41: }
42:
43: /**
44: * @testng.after-class
45: */
46: public void childAfterTestClass() {
47: ConfigurationMethodOrderingTest.LOG.add("childAfterTestClass");
48: }
49:
50: }
|