Issue #2546: fix for build failures for RegexpOnFilenameCheck

This commit is contained in:
Roman Ivanov 2016-01-30 06:47:10 -08:00
parent ddf1ce6549
commit a5369c60d1
2 changed files with 3 additions and 3 deletions

View File

@ -74,7 +74,7 @@
files="AbstractClassNameCheckTest.java|AbstractTypeAwareCheckTest.java|AbstractJavadocCheckTest.java|AbstractViolationReporterTest.java"/>
<!-- Tone down the checking for test code -->
<suppress checks="CyclomaticComplexity" files="[\\/]XDocsPagesTest\.java" lines="299"/>
<suppress checks="CyclomaticComplexity" files="[\\/]XDocsPagesTest\.java"/>
<suppress checks="IllegalCatch" files="[\\/]internal[\\/]\w+Util\.java"/>
<suppress checks="EmptyBlock" files=".*[\\/]src[\\/]test[\\/]"/>
<suppress checks="ImportControl" files=".*[\\/]src[\\/](test|it)[\\/]"/>

View File

@ -193,7 +193,7 @@ public class RegexpOnFilenameCheckTest extends BaseFileSetCheckTestSupport {
public void testNotMatchFolderAndFileNotMatchesFolder() throws Exception {
final DefaultConfiguration checkConfig = createCheckConfig(RegexpOnFilenameCheck.class);
checkConfig.addAttribute("match", "false");
checkConfig.addAttribute("folderPattern", ".*[\\\\/]java[\\\\/].*");
checkConfig.addAttribute("folderPattern", ".*[\\\\/]javastrangefolder[\\\\/].*");
checkConfig.addAttribute("fileNamePattern", ".*\\.dat");
verify(checkConfig, getPath("InputSemantic.java"), ArrayUtils.EMPTY_STRING_ARRAY);
}
@ -202,7 +202,7 @@ public class RegexpOnFilenameCheckTest extends BaseFileSetCheckTestSupport {
public void testNotMatchFolderAndFileNotMatchesFile() throws Exception {
final DefaultConfiguration checkConfig = createCheckConfig(RegexpOnFilenameCheck.class);
checkConfig.addAttribute("match", "false");
checkConfig.addAttribute("folderPattern", ".*[\\\\/]gov[\\\\/].*");
checkConfig.addAttribute("folderPattern", ".*[\\\\/]govstrangefolder[\\\\/].*");
checkConfig.addAttribute("fileNamePattern", ".*\\.java");
verify(checkConfig, getPath("InputSemantic.java"), ArrayUtils.EMPTY_STRING_ARRAY);
}