1 package test.listeners; 2 3 import org.testng.annotations.BeforeMethod; 4 import org.testng.annotations.Test; 5 6 public class ConfigurationListenerFailSampleTest { 7 8 @BeforeMethod bmShouldFail()9 public void bmShouldFail() { 10 throw new RuntimeException(); 11 } 12 13 @Test f()14 public void f() { 15 } 16 } 17