01: package test.conffailure;
02:
03: import org.testng.annotations.BeforeClass;
04: import org.testng.annotations.Test;
05:
06: public class ClassWithFailedBeforeTestClass {
07: @BeforeClass
08: public void setUpShouldFail() {
09: throw new RuntimeException("Failing in setUp");
10: }
11:
12: // Adding this method or @Configuration will never be invoked
13: @Test
14: public void dummy() {
15:
16: }
17:
18: }
|