diff --git a/pom.xml b/pom.xml index 8152ffdba..6761fda45 100644 --- a/pom.xml +++ b/pom.xml @@ -1109,7 +1109,6 @@ .*.checks.TranslationCheck8183 .*.checks.UncommentedMainCheck8388 .*.checks.UniquePropertiesCheck\$.*7590 - .*.checks.UpperEllCheck10083 .*.checks.annotation.AnnotationLocationCheck7578 diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/UpperEllCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/UpperEllCheckTest.java index 4c21b7876..877d218f5 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/UpperEllCheckTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/UpperEllCheckTest.java @@ -19,11 +19,15 @@ package com.puppycrawl.tools.checkstyle.checks; -import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport; -import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import static com.puppycrawl.tools.checkstyle.checks.UpperEllCheck.MSG_KEY; +import static org.junit.Assert.assertArrayEquals; +import static org.junit.Assert.assertTrue; + import org.junit.Test; -import static com.puppycrawl.tools.checkstyle.checks.UpperEllCheck.MSG_KEY; +import com.puppycrawl.tools.checkstyle.BaseCheckTestSupport; +import com.puppycrawl.tools.checkstyle.DefaultConfiguration; +import com.puppycrawl.tools.checkstyle.api.TokenTypes; public class UpperEllCheckTest extends BaseCheckTestSupport { @@ -37,4 +41,13 @@ public class UpperEllCheckTest }; verify(checkConfig, getPath("InputSemantic.java"), expected); } + + @Test + public void testAcceptableTockens() { + int[] expected = {TokenTypes.NUM_LONG }; + UpperEllCheck check = new UpperEllCheck(); + int[] actual = check.getAcceptableTokens(); + assertTrue(actual.length == 1); + assertArrayEquals(expected, actual); + } }