01: package test.dependent;
02:
03: import org.testng.annotations.Test;
04:
05: public class ImplicitMethodInclusionSampleTest {
06: @Test(groups={"linux"})
07: public void a() {
08: // ppp("A");
09: }
10:
11: @Test(groups={"linux","windows"},dependsOnMethods={"a"})
12: public void b() {
13: // ppp("B");
14: }
15:
16: private void ppp(String string) {
17: System.out.println("[Implicit] " + string);
18: }
19:
20: }
|