Delete test for findChildNodesWithXPath

This commit is contained in:
Clément Fournier committed 2020-04-18 17:42:56 +02:00
1 parent e9cc7e00ef
commit 400ca5dca5
1 file changed
-22
@@ -6,10 +6,8 @@ package net.sourceforge.pmd.lang.ast;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
import org.jaxen.JaxenException;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
@@ -228,24 +226,4 @@ public class AbstractNodeTest {
assertEquals(0, grandChild.getNumChildren());
}
@Test
public void testDeprecatedAttributeXPathQuery() throws JaxenException {
class MyRootNode extends DummyNode implements RootNode {
private MyRootNode(int id) {
super(id);
}
}
addChild(new MyRootNode(nextId()), new DummyNodeWithDeprecatedAttribute(2)).findChildNodesWithXPath("//dummyNode[@Size=1]");
String log = loggingRule.getLog();
assertTrue(log.contains("deprecated"));
assertTrue(log.contains("attribute"));
assertTrue(log.contains("dummyNode/@Size"));
}
}