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