Call default ctor

Defines properties
This commit is contained in:
Clément Fournier
2020-04-09 15:28:20 +02:00
parent 60087590e6
commit 60d443963c
2 changed files with 2 additions and 1 deletions

View File

@ -41,7 +41,7 @@ public class XPathMetricFunctionTest {
private Rule makeXpathRuleFromXPath(String xpath) {
XPathRule rule = new XPathRule(XPathVersion.XPATH_2_0, xpath);
XPathRule rule = new XPathRule(XPathVersion.XPATH_1_0, xpath);
rule.setMessage(VIOLATION_MESSAGE);
rule.setLanguage(LanguageRegistry.getLanguage(JavaLanguageModule.NAME));
return rule;