diff options
author | rnveach <rveach02@gmail.com> | 2016-06-16 17:33:39 -0400 |
---|---|---|
committer | Roman Ivanov <romani@users.noreply.github.com> | 2016-06-16 14:33:39 -0700 |
commit | 40a0b5dcf7f9b45ae98ddcb1dec6e9e7c4eec676 (patch) | |
tree | 4597c3f9cd40e4c154bfe7fee57adb9dbf42bd46 /src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java | |
parent | 325e57feb8238285065bfe7f23b3664b45a53a2d (diff) | |
download | checkstyle-40a0b5dcf7f9b45ae98ddcb1dec6e9e7c4eec676.tar.gz |
Issue #3239: fixed checks that fail on new receiver parameter (#3272)
Diffstat (limited to 'src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java')
-rw-r--r-- | src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java index 139d5774d..6c2af2340 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/coding/RequireThisCheckTest.java @@ -240,4 +240,11 @@ public class RequireThisCheckTest extends BaseCheckTestSupport { }; verify(checkConfig, getPath("InputValidateOnlyOverlappingTrue.java"), expected); } + + @Test + public void testReceiverParameter() throws Exception { + final DefaultConfiguration checkConfig = createCheckConfig(RequireThisCheck.class); + final String[] expected = CommonUtils.EMPTY_STRING_ARRAY; + verify(checkConfig, getPath("InputRequireThisReceiver.java"), expected); + } } |