01: /**
02: * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
03: */package test.net.sourceforge.pmd.jaxen;
04:
05: import net.sourceforge.pmd.ast.SimpleJavaNode;
06: import net.sourceforge.pmd.ast.SimpleNode;
07: import net.sourceforge.pmd.jaxen.AttributeAxisIterator;
08:
09: import org.junit.Test;
10:
11: public class AttributeAxisIteratorTest {
12:
13: @Test(expected=UnsupportedOperationException.class)
14: public void testRemove() {
15: SimpleNode n = new SimpleJavaNode(0);
16: n.testingOnly__setBeginColumn(1);
17: n.testingOnly__setBeginLine(1);
18: AttributeAxisIterator iter = new AttributeAxisIterator(n);
19: iter.remove();
20: }
21:
22: public static junit.framework.Test suite() {
23: return new junit.framework.JUnit4TestAdapter(
24: AttributeAxisIteratorTest.class);
25: }
26: }
|