01: package test.configuration;
02:
03: import org.testng.Assert;
04: import org.testng.annotations.AfterTest;
05: import org.testng.annotations.BeforeGroups;
06: import org.testng.annotations.BeforeTest;
07: import org.testng.annotations.Test;
08:
09: @Test(groups={"base"})
10: public class Base {
11: static int m_count;
12:
13: @BeforeTest
14: public void init() {
15: m_count = 0;
16: }
17:
18: @BeforeGroups(groups="foo")
19: public void beforeGroups() {
20: m_count++;
21: }
22:
23: private static void ppp(String s) {
24: System.out.println("[Base] " + s);
25: }
26: }
|