From 5685e9dfa37ef30a30ccc8fbe4c5d5424d33e7b9 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Sun, 12 May 2019 14:44:27 +0200 Subject: [PATCH] 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 --- src/checkstyle/checkstyle.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/checkstyle/checkstyle.xml b/src/checkstyle/checkstyle.xml index 99bcb0f33c..c3109026b5 100644 --- a/src/checkstyle/checkstyle.xml +++ b/src/checkstyle/checkstyle.xml @@ -97,7 +97,7 @@ + value="^reactor\.core\.support\.Assert,^junit\.framework\..+,^org\.junit\.Assert\.assertThat,^org\.junit\.Assume\.assumeThat,^org\.junit\.rules\.ExpectedException,^org\.slf4j\.LoggerFactory" />