blob: 094f88ec083e4551fb4aacf58f51eeb7d877756f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.test.samples;
import com.yahoo.vespa.testrunner.Expect;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.junit.jupiter.api.extension.Extension;
import static java.util.Objects.requireNonNull;
@Expect(error = 1, status = 5)
public class FailingExtensionTest {
@Test
@ExtendWith(FailingExtension.class)
void test() { }
static class FailingExtension implements Extension {
{ if (true) throw new NullPointerException(); }
}
}
|