Skip to content

Commit

Permalink
Issue checkstyle#4586: Moved resources for AbstractTypeAware check test
Browse files Browse the repository at this point in the history
  • Loading branch information
djydewang committed Jul 7, 2017
1 parent 7fb0cf6 commit c5db01d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public void setUp() {
@Override
protected String getPath(String filename) throws IOException {
return super.getPath("checks" + File.separator
+ "javadoc" + File.separator + filename);
+ "javadoc" + File.separator
+ "abstracttypeaware" + File.separator + filename);
}

@Test
Expand Down Expand Up @@ -168,7 +169,7 @@ public void testWithoutLogErrors() throws Exception {
"7:8: " + getCheckMessage(MSG_CLASS_INFO, "@throws", "InvalidExceptionName"),
};
try {
verify(config, getPath("InputLoadErrors.java"), expected);
verify(config, getPath("InputAbstractTypeAwareLoadErrors.java"), expected);
}
catch (CheckstyleException ex) {
final IllegalStateException cause = (IllegalStateException) ex.getCause();
Expand All @@ -184,6 +185,6 @@ public void testWithSuppressLoadErrors() throws Exception {
checkConfig.addAttribute("allowUndeclaredRTE", "true");
final String[] expected = CommonUtils.EMPTY_STRING_ARRAY;

verify(checkConfig, getPath("InputLoadErrors.java"), expected);
verify(checkConfig, getPath("InputAbstractTypeAwareLoadErrors.java"), expected);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.puppycrawl.tools.checkstyle.checks.javadoc.abstracttypeaware;

public class InputAbstractTypeAwareLoadErrors
{
/**
* aasdf
* @throws InvalidExceptionName exception that cannot be loaded
*/
void method() {}
}

0 comments on commit c5db01d

Please sign in to comment.