01: package test.multiple;
02:
03: public class Test1 {
04: private static int m_count = 0;
05:
06: /**
07: * @testng.before-test
08: */
09: public void init() {
10: m_count = 0;
11: }
12:
13: /**
14: * @testng.test
15: */
16: public void f1() {
17: // ppp("INVOKING f1 " + m_count);
18: assert m_count < 1 : "FAILING";
19: m_count++;
20: }
21:
22: private static void ppp(String s) {
23: System.out.println("[Test1] " + s);
24: }
25:
26: }
|