aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/test/samples/FailingBeforeEachTest.java
blob: 5e5ebe47c9978c846feca34745dbb5d65072d118 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.yahoo.vespa.test.samples;

import com.yahoo.vespa.testrunner.Expect;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;

@Expect(error = 1, status = 5)
public class FailingBeforeEachTest {

    @BeforeEach
    void fail() { throw new RuntimeException(); }

    @Test
    void test() { }

}