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
bmShouldFail()9   public void bmShouldFail() {
10     throw new RuntimeException();
11   }
12 
13   @BeforeMethod(dependsOnMethods = "bmShouldFail")
bm()14   public void bm() {
15   }
16 
17   @Test
f()18   public void f() {
19   }
20 }
21