Home | History | Annotate | Download | only in inheritance
      1 package test.inheritance;
      2 
      3 import org.testng.AssertJUnit;
      4 import org.testng.annotations.Test;
      5 
      6 import java.util.List;
      7 
      8 public class VerifyTest {
      9 
     10   @Test(dependsOnGroups = {"before"})
     11   public void verify() {
     12     String[] expected = {
     13       "initApplication",
     14       "initDialog",
     15       "initDialog2",
     16       "test",
     17       "tearDownDialog2",
     18       "tearDownDialog",
     19       "tearDownApplication"
     20     };
     21 
     22     int i = 0;
     23     List<String> l = ZBase_0.getMethodList();
     24     AssertJUnit.assertEquals(expected.length, l.size());
     25     for (String s : l) {
     26       AssertJUnit.assertEquals(expected[i++], s);
     27     }
     28   }
     29 
     30   private static void ppp(String s) {
     31     System.out.println("[VerifyTest] " + s);
     32   }
     33 }
     34