Home | History | Annotate | Download | only in listeners
      1 package test.listeners;
      2 
      3 import org.testng.annotations.AfterMethod;
      4 import org.testng.annotations.Listeners;
      5 import org.testng.annotations.Test;
      6 
      7 @Listeners(SimpleListener.class)
      8 public class FailingSampleTest {
      9   @AfterMethod
     10   public void am() {
     11     SimpleListener.m_list.add(6);
     12   }
     13 
     14   @Test
     15   public void a1() {
     16     SimpleListener.m_list.add(4);
     17     throw new RuntimeException();
     18   }
     19 
     20 }
     21