Browse Source

Add Checkstyle rules for deprecated JUnit APIs

This commit adds Checkstyle rules to disallow imports of the following.

- junit.framework.*
- org.junit.Assert.assertThat
- org.junit.Assume.assumeThat

See gh-22894
pull/22953/head
Sam Brannen 6 years ago
parent
commit
5685e9dfa3
  1. 2
      src/checkstyle/checkstyle.xml

2
src/checkstyle/checkstyle.xml

@ -97,7 +97,7 @@ @@ -97,7 +97,7 @@
<module name="com.puppycrawl.tools.checkstyle.checks.imports.IllegalImportCheck">
<property name="regexp" value="true" />
<property name="illegalClasses"
value="^reactor\.core\.support\.Assert,^org\.junit\.rules\.ExpectedException,^org\.slf4j\.LoggerFactory" />
value="^reactor\.core\.support\.Assert,^junit\.framework\..+,^org\.junit\.Assert\.assertThat,^org\.junit\.Assume\.assumeThat,^org\.junit\.rules\.ExpectedException,^org\.slf4j\.LoggerFactory" />
</module>
<!-- Javadoc Comments -->

Loading…
Cancel
Save