Home | History | Annotate | Download | only in invokedmethodlistener
      1 package test.invokedmethodlistener;
      2 
      3 import org.testng.annotations.AfterMethod;
      4 import org.testng.annotations.BeforeSuite;
      5 import org.testng.annotations.Test;
      6 
      7 public class Sample {
      8 
      9   @Test
     10   public void t1() {
     11     try {
     12       Thread.sleep(100);
     13     } catch (InterruptedException handled) {
     14       Thread.currentThread().interrupt();
     15     }
     16   }
     17 
     18   @Test
     19   public void t2() {
     20     try {
     21       Thread.sleep(100);
     22     } catch (InterruptedException handled) {
     23       Thread.currentThread().interrupt();
     24     }
     25   }
     26 
     27   @AfterMethod
     28   public void am() {}
     29 
     30   @BeforeSuite
     31   public void bs() {}
     32 }
     33