Skip to content

Commit ef2c527

Browse files
DavidBwilkinsona
authored andcommitted
Fix imports and annotations in JUnit5BadModifier
See gh-176
1 parent de0db96 commit ef2c527

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

spring-javaformat/spring-javaformat-checkstyle/src/test/resources/source/JUnit5BadModifier.java

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
*/
1616

1717
import org.junit.jupiter.api.Test;
18+
import org.junit.jupiter.api.BeforeAll;
19+
import org.junit.jupiter.api.BeforeEach;
20+
import org.junit.jupiter.api.AfterAll;
21+
import org.junit.jupiter.api.AfterEach;
22+
import org.junit.jupiter.api.TestTemplate;
1823

1924
/**
2025
* Test with bad modifiers.
@@ -38,7 +43,7 @@ public static void publicAfterAll() {
3843

3944
}
4045

41-
@BeforeEach
46+
@AfterEach
4247
public void publicAfterEach() {
4348

4449
}
@@ -58,7 +63,7 @@ private static void privateAfterAll() {
5863

5964
}
6065

61-
@BeforeEach
66+
@AfterEach
6267
private void privateAfterEach() {
6368

6469
}

0 commit comments

Comments
 (0)