aboutsummaryrefslogtreecommitdiffstats
path: root/vespa-osgi-testrunner/src/test/java/com/yahoo/vespa/test/samples/FailingInnerClassTest.java
blob: 85ed49fcf0ba9151554d3fd0cbb304fe24d4f9e2 (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
25
26
27
28
package com.yahoo.vespa.test.samples;

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

import static org.junit.jupiter.api.Assertions.fail;

@Expect(successful = 1, failed = 1, status = 4)
public class FailingInnerClassTest {

    @Nested
    class Failing {

        @Test
        void test() { fail(); }

    }

    @Nested
    class Succeeding {

        @Test
        void test() { }

    }

}