1 package test.conffailure; 2 3 import org.testng.annotations.BeforeSuite; 4 5 public class ClassWithFailedBeforeSuite { 6 7 @BeforeSuite setUpShouldFail()8 public void setUpShouldFail() { 9 throw new RuntimeException("Failing in setUp"); 10 } 11 12 } 13