diff options
author | Aurimas Liutikas <aurimas@google.com> | 2017-11-28 20:29:59 -0800 |
---|---|---|
committer | Aurimas Liutikas <aurimas@google.com> | 2017-11-28 20:29:59 -0800 |
commit | b4aec831a096b89efed151c9b2c5754d9491e6ea (patch) | |
tree | f8c04870544dda72e99139fcc713a66b04514dcc /src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java | |
parent | b8aa773e4886dabd0ffc5026420edd061069f044 (diff) | |
parent | dbbd00f58fd36c7c23e24e6652076b735b8e7c0c (diff) | |
download | checkstyle-b4aec831a096b89efed151c9b2c5754d9491e6ea.tar.gz |
Merge Checkstyle 8.5 into aosp/master
Test: None
Diffstat (limited to 'src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java')
-rw-r--r-- | src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java b/src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java index 75483bcc3..2aafd1e76 100644 --- a/src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java +++ b/src/test/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheckTest.java @@ -24,7 +24,6 @@ import static org.junit.Assert.assertArrayEquals; import static org.junit.Assert.assertEquals; import org.junit.Assert; -import org.junit.Before; import org.junit.Test; import com.puppycrawl.tools.checkstyle.AbstractModuleTestSupport; @@ -33,16 +32,9 @@ import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.utils.CommonUtils; public class TrailingCommentCheckTest extends AbstractModuleTestSupport { - private DefaultConfiguration checkConfig; - - @Before - public void setUp() { - checkConfig = createCheckConfig(TrailingCommentCheck.class); - } - @Override protected String getPackageLocation() { - return "com/puppycrawl/tools/checkstyle/checks/misc/trailingcomment"; + return "com/puppycrawl/tools/checkstyle/checks/trailingcomment"; } @Test @@ -61,6 +53,7 @@ public class TrailingCommentCheckTest extends AbstractModuleTestSupport { @Test public void testDefaults() throws Exception { + final DefaultConfiguration checkConfig = createModuleConfig(TrailingCommentCheck.class); final String[] expected = { "4: " + getCheckMessage(MSG_KEY), "7: " + getCheckMessage(MSG_KEY), @@ -74,6 +67,7 @@ public class TrailingCommentCheckTest extends AbstractModuleTestSupport { @Test public void testLegalComment() throws Exception { + final DefaultConfiguration checkConfig = createModuleConfig(TrailingCommentCheck.class); checkConfig.addAttribute("legalComment", "^NOI18N$"); final String[] expected = { "4: " + getCheckMessage(MSG_KEY), |