Skip to content

Commit 7b76036

Browse files
committed
Merge pull request #176 from davebarda
* gh-176: Polish "Fix imports and annotations in JUnit5BadModifier" Fix imports and annotations in JUnit5BadModifier Closes gh-176
2 parents de0db96 + 8b73890 commit 7b76036

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017-2019 the original author or authors.
2+
* Copyright 2017-2020 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -14,7 +14,12 @@
1414
* limitations under the License.
1515
*/
1616

17+
import org.junit.jupiter.api.AfterAll;
18+
import org.junit.jupiter.api.AfterEach;
19+
import org.junit.jupiter.api.BeforeAll;
20+
import org.junit.jupiter.api.BeforeEach;
1721
import org.junit.jupiter.api.Test;
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)