23
23
import org .junit .platform .testkit .engine .Events ;
24
24
25
25
/**
26
- * Integration tests that very proper handling of invalid configuration for
26
+ * Integration tests that verify proper handling of invalid configuration for
27
27
* lifecycle methods in conjunction with the {@link JupiterTestEngine}.
28
28
*
29
29
* <p>In general, configuration errors should not be thrown until the
@@ -44,13 +44,13 @@ void executeValidTestCaseAlongsideTestCaseWithInvalidAfterAllDeclaration() {
44
44
}
45
45
46
46
@ Test
47
- void executeValidTestCaseAlongsideTestCaseWithInvalidBeforeEachDeclaration () {
48
- assertExecutionResults (TestCaseWithInvalidBeforeEachMethod .class );
47
+ void executeValidTestCaseAlongsideTestCaseWithInvalidStaticBeforeEachDeclaration () {
48
+ assertExecutionResults (TestCaseWithInvalidStaticBeforeEachMethod .class );
49
49
}
50
50
51
51
@ Test
52
- void executeValidTestCaseAlongsideTestCaseWithInvalidAfterEachDeclaration () {
53
- assertExecutionResults (TestCaseWithInvalidAfterEachMethod .class );
52
+ void executeValidTestCaseAlongsideTestCaseWithInvalidStaticAfterEachDeclaration () {
53
+ assertExecutionResults (TestCaseWithInvalidStaticAfterEachMethod .class );
54
54
}
55
55
56
56
private void assertExecutionResults (Class <?> invalidTestClass ) {
@@ -104,7 +104,7 @@ void test() {
104
104
}
105
105
}
106
106
107
- static class TestCaseWithInvalidBeforeEachMethod {
107
+ static class TestCaseWithInvalidStaticBeforeEachMethod {
108
108
109
109
// must NOT be static
110
110
@ BeforeEach
@@ -116,7 +116,7 @@ void test() {
116
116
}
117
117
}
118
118
119
- static class TestCaseWithInvalidAfterEachMethod {
119
+ static class TestCaseWithInvalidStaticAfterEachMethod {
120
120
121
121
// must NOT be static
122
122
@ AfterEach
0 commit comments