Permalink
Browse files

Issue checkstyle#4587: Moved all necessary resource files for TodoCom…

…ment
  • Loading branch information...
Dmytro Kytsmen
Dmytro Kytsmen committed Jul 6, 2017
1 parent 1d1c2de commit 032032029194ea04effa6aad3e86b66030ecd5ed
@@ -36,7 +36,10 @@
extends BaseCheckTestSupport {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator + filename);
return super.getPath("checks" + File.separator
+ "misc" + File.separator
+ "todocomment" + File.separator
+ filename);
}
@Test
@@ -58,7 +61,7 @@ public void testIt() throws Exception {
"163: " + getCheckMessage(MSG_KEY, "FIXME:"),
"167: " + getCheckMessage(MSG_KEY, "FIXME:"),
};
verify(checkConfig, getPath("InputSimple.java"), expected);
verify(checkConfig, getPath("InputTodoCommentSimple.java"), expected);
}
@Test
@@ -3,7 +3,7 @@
// Created: Feb-2001
// Ignore error
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.checks;
package com.puppycrawl.tools.checkstyle.checks.misc.todocomment;
import java.io.*;
/**
* Contains simple mistakes:
@@ -13,7 +13,7 @@
* - Order of modifiers
* @author Oliver Burn
**/
final class InputSimple
final class InputTodoCommentSimple
{
// Long line ----------------------------------------------------------------
// Contains a tab -> <-
@@ -99,7 +99,7 @@ private void longMethod()
}
/** constructor that is 10 lines long **/
private InputSimple()
private InputTodoCommentSimple()
{
// a line
// a line
@@ -198,7 +198,7 @@ void toManyArgs(int aArg1, int aArg2, int aArg3, int aArg4, int aArg5,
}
/** Test class for variable naming in for each clauses. */
class InputSimple2
class InputTodoCommentSimple2
{
/** Some more Javadoc. */
public void doSomething()

0 comments on commit 0320320

Please sign in to comment.