forked from phoedos/pmd
pmd: fix failing unit test
This commit is contained in:
parent
a66bbf2193
commit
33c7af965c
@ -475,11 +475,11 @@ public class RuleSetFactoryTest {
|
||||
+ " is missing 'externalInfoURL' attribute"
|
||||
+ PMD.EOL;
|
||||
} else {
|
||||
String expectedExternalInfoURL = "http://pmd.sourceforge.net/snapshot/rules/"
|
||||
String expectedExternalInfoURL = "http://pmd.sourceforge.net/.+/rules/"
|
||||
+ fileName.replaceAll("rulesets/", "").replaceAll(
|
||||
".xml", "") + ".html#" + rule.getName();
|
||||
if (!expectedExternalInfoURL.equals(rule
|
||||
.getExternalInfoUrl())) {
|
||||
if (rule.getExternalInfoUrl() == null
|
||||
|| !rule.getExternalInfoUrl().matches(expectedExternalInfoURL)) {
|
||||
invalidExternalInfoURL++;
|
||||
messages += "Rule "
|
||||
+ fileName
|
||||
|
Loading…
x
Reference in New Issue
Block a user