View Javadoc

1   /**
2    * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3    */
4   package net.sourceforge.pmd.jaxen;
5   
6   import net.sourceforge.pmd.lang.ast.xpath.AttributeAxisIterator;
7   import net.sourceforge.pmd.lang.java.ast.DummyJavaNode;
8   
9   import org.junit.Test;
10  
11  public class AttributeAxisIteratorTest {
12  
13      @Test(expected = UnsupportedOperationException.class)
14      public void testRemove() {
15  	DummyJavaNode n = new DummyJavaNode(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(AttributeAxisIteratorTest.class);
24      }
25  }