1 package test.conffailure;
2 
3 import org.testng.annotations.BeforeClass;
4 import org.testng.annotations.Test;
5 
6 public class ClassWithFailedBeforeTestClass {
7   @BeforeClass
setUpShouldFail()8   public void setUpShouldFail() {
9     throw new RuntimeException("Failing in setUp");
10   }
11 
12   // Adding this method or @Configuration will never be invoked
13   @Test
dummy()14   public void dummy() {
15 
16   }
17 
18 }
19