Skip to content

Commit a75eef0

Browse files
committed
#2914: rename existing test methods and fix javadoc typo
1 parent 8771b65 commit a75eef0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: junit-jupiter-engine/src/test/java/org/junit/jupiter/engine/InvalidLifecycleMethodConfigurationTests.java

+7-7
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import org.junit.platform.testkit.engine.Events;
2424

2525
/**
26-
* Integration tests that very proper handling of invalid configuration for
26+
* Integration tests that verify proper handling of invalid configuration for
2727
* lifecycle methods in conjunction with the {@link JupiterTestEngine}.
2828
*
2929
* <p>In general, configuration errors should not be thrown until the
@@ -44,13 +44,13 @@ void executeValidTestCaseAlongsideTestCaseWithInvalidAfterAllDeclaration() {
4444
}
4545

4646
@Test
47-
void executeValidTestCaseAlongsideTestCaseWithInvalidBeforeEachDeclaration() {
48-
assertExecutionResults(TestCaseWithInvalidBeforeEachMethod.class);
47+
void executeValidTestCaseAlongsideTestCaseWithInvalidStaticBeforeEachDeclaration() {
48+
assertExecutionResults(TestCaseWithInvalidStaticBeforeEachMethod.class);
4949
}
5050

5151
@Test
52-
void executeValidTestCaseAlongsideTestCaseWithInvalidAfterEachDeclaration() {
53-
assertExecutionResults(TestCaseWithInvalidAfterEachMethod.class);
52+
void executeValidTestCaseAlongsideTestCaseWithInvalidStaticAfterEachDeclaration() {
53+
assertExecutionResults(TestCaseWithInvalidStaticAfterEachMethod.class);
5454
}
5555

5656
private void assertExecutionResults(Class<?> invalidTestClass) {
@@ -104,7 +104,7 @@ void test() {
104104
}
105105
}
106106

107-
static class TestCaseWithInvalidBeforeEachMethod {
107+
static class TestCaseWithInvalidStaticBeforeEachMethod {
108108

109109
// must NOT be static
110110
@BeforeEach
@@ -116,7 +116,7 @@ void test() {
116116
}
117117
}
118118

119-
static class TestCaseWithInvalidAfterEachMethod {
119+
static class TestCaseWithInvalidStaticAfterEachMethod {
120120

121121
// must NOT be static
122122
@AfterEach

0 commit comments

Comments
 (0)