01: package test.configuration;
02:
03: import org.testng.annotations.BeforeSuite;
04: import org.testng.annotations.Test;
05:
06: public class SuiteTest extends BaseSuiteTest {
07: @BeforeSuite(dependsOnMethods={"beforeSuiteParent"})
08: public void beforeSuiteChild() {
09: m_order.add(2);
10: }
11:
12: // @AfterSuite(dependsOnMethods={"afterSuiteParent"})
13: // public void afterSuiteChild(){
14: // m_order.add(4);
15: // System.out.println("AFTER SUITE CHILD");
16: // }
17:
18: @Test
19: public void test1() {
20: m_order.add(3);
21: }
22: }
|