use of net.sf.saxon.sxpath.XPathExpression in project checkstyle by checkstyle.
the class XpathFilterElementTest method testEqualsAndHashCode.
@Test
public void testEqualsAndHashCode() throws Exception {
final XPathEvaluator xpathEvaluator = new XPathEvaluator(Configuration.newConfiguration());
final EqualsVerifierReport ev = EqualsVerifier.forClass(XpathFilterElement.class).withPrefabValues(XPathExpression.class, xpathEvaluator.createExpression("//METHOD_DEF"), xpathEvaluator.createExpression("//VARIABLE_DEF")).usingGetClass().withIgnoredFields("fileRegexp", "checkRegexp", "messageRegexp", "xpathExpression").report();
assertWithMessage("Error: " + ev.getMessage()).that(ev.isSuccessful()).isTrue();
}
Aggregations