Fix unit test

This commit is contained in:
Andreas Dangel 2024-09-13 10:37:37 +02:00
parent 91f17838d4
commit 47f204cb19
No known key found for this signature in database
GPG Key ID: 93450DF2DF9A3FA3

View File

@ -91,7 +91,7 @@ class RuleSetReferenceIdTest {
new RuleSetReferenceId("rulesets/java/basic.xml/EmptyCatchBlock"));
assertRuleSetReferenceId(false, null, false, "EmptyCatchBlock", "EmptyCatchBlock",
new RuleSetReferenceId("EmptyCatchBlock"));
assertRuleSetReferenceId(true, "https://raw.githubusercontent.com/pmd/pmd/main/pmd-java/src/main/resources/rulesets/java/quickstart.xml", false, "ConstantsInInterface", "https://raw.githubusercontent.com/pmd/pmd/master/pmd-java/src/main/resources/rulesets/java/quickstart.xml/ConstantsInInterface",
assertRuleSetReferenceId(true, "https://raw.githubusercontent.com/pmd/pmd/main/pmd-java/src/main/resources/rulesets/java/quickstart.xml", false, "ConstantsInInterface", "https://raw.githubusercontent.com/pmd/pmd/main/pmd-java/src/main/resources/rulesets/java/quickstart.xml/ConstantsInInterface",
new RuleSetReferenceId("https://raw.githubusercontent.com/pmd/pmd/main/pmd-java/src/main/resources/rulesets/java/quickstart.xml/ConstantsInInterface"));
assertRuleSetReferenceId(true, "https://example.org/ruleset/MyRule", true, null, "https://example.org/ruleset/MyRule",
new RuleSetReferenceId("https://example.org/ruleset/MyRule"));