Add SpringJUnit5 checkstyle rule

Add `SpringJUnit5` checkstyle rule to ensure that JUnit 4 annotations
aren't accidentally used in new tests.

The "must not be public" rule has been suppressed since there are
quite a few tests that extend base tests from other packages.
This commit is contained in:
Phillip Webb
2019-08-17 08:29:58 -07:00
parent 0db2f8fbcf
commit f8a93ee4a7
2 changed files with 4 additions and 0 deletions

View File

@@ -211,5 +211,6 @@
</module>
<module name="io.spring.javaformat.checkstyle.check.SpringCatchCheck" />
<module name="io.spring.javaformat.checkstyle.check.SpringJavadocCheck" />
<module name="io.spring.javaformat.checkstyle.check.SpringJUnit5Check" />
</module>
</module>