blob: 5ca1f43b976fc0701ba069a606266696f99281cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.yahoo.vespa.test.samples;
import com.yahoo.vespa.testrunner.Expect;
import org.junit.jupiter.api.AfterAll;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
@Expect(failed = 1, status = 5)
public class FailingTestAndBothAftersTest {
@AfterAll
static void fail() { throw new RuntimeException(); }
@AfterEach
void moreFail() { throw new RuntimeException(); }
@Test
void test() { Assertions.fail(); }
}
|