Skip to content

Commit

Permalink
Issue checkstyle#4587: Moved all necessary resource files for TodoCom…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
Dmytro Kytsmen committed Jul 6, 2017
1 parent 1d1c2de commit 0320320
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Expand Up @@ -36,7 +36,10 @@ public class TodoCommentCheckTest
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
Expand All @@ -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
Expand Down
Expand Up @@ -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:
Expand All @@ -13,7 +13,7 @@
* - Order of modifiers
* @author Oliver Burn
**/
final class InputSimple
final class InputTodoCommentSimple
{
// Long line ----------------------------------------------------------------
// Contains a tab -> <-
Expand Down Expand Up @@ -99,7 +99,7 @@ private void longMethod()
}

/** constructor that is 10 lines long **/
private InputSimple()
private InputTodoCommentSimple()
{
// a line
// a line
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 0320320

Please sign in to comment.