01: package test.inheritance;
02:
03: import java.util.List;
04:
05: import org.testng.AssertJUnit;
06: import org.testng.annotations.Test;
07:
08: public class VerifyTest {
09:
10: @Test(dependsOnGroups={"before"})
11: public void verify() {
12: String[] expected = { "initApplication", "initDialog",
13: "initDialog2", "test", "tearDownDialog2",
14: "tearDownDialog", "tearDownApplication" };
15:
16: int i = 0;
17: List<String> l = ZBase_0.getMethodList();
18: AssertJUnit.assertEquals(expected.length, l.size());
19: for (String s : l) {
20: AssertJUnit.assertEquals(expected[i++], s);
21: }
22: }
23:
24: private static void ppp(String s) {
25: System.out.println("[VerifyTest] " + s);
26: }
27: }
|