Home | History | Annotate | Download | only in listeners
      1 package test.listeners;
      2 
      3 import org.testng.annotations.BeforeMethod;
      4 import org.testng.annotations.Test;
      5 
      6 public class ConfigurationListenerSkipSampleTest {
      7 
      8   @BeforeMethod
      9   public void bmShouldFail() {
     10     throw new RuntimeException();
     11   }
     12 
     13   @BeforeMethod(dependsOnMethods = "bmShouldFail")
     14   public void bm() {
     15   }
     16 
     17   @Test
     18   public void f() {
     19   }
     20 }
     21