org.apache.commons.configuration.tree.xpath
Class TestConfigurationIteratorAttributes

java.lang.Object
  extended by org.apache.commons.configuration.tree.xpath.AbstractXPathTest
      extended by org.apache.commons.configuration.tree.xpath.TestConfigurationIteratorAttributes

public class TestConfigurationIteratorAttributes
extends AbstractXPathTest

Test class for ConfigurationIteratorAttributes.

Version:
$Id: TestConfigurationIteratorAttributes.java 1226104 2011-12-31 15:37:16Z oheger $
Author:
Commons Configuration team

Field Summary
 
Fields inherited from class org.apache.commons.configuration.tree.xpath.AbstractXPathTest
ATTR_NAME, CHILD_COUNT, CHILD_NAME1, CHILD_NAME2, LEVEL_COUNT, root
 
Constructor Summary
TestConfigurationIteratorAttributes()
           
 
Method Summary
 void setUp()
           
 void testIterateAllAttributes()
          Tests to iterate over all attributes.
 void testIterateNamespace()
          Tests iteration when a namespace is specified.
 void testIterateSpecificAttribute()
          Tests to iterate over attributes with a specific name.
 void testIterateUnknownAttribute()
          Tests to iterate over non existing attributes.
 
Methods inherited from class org.apache.commons.configuration.tree.xpath.AbstractXPathTest
constructHierarchy, iterationElements, iteratorSize, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestConfigurationIteratorAttributes

public TestConfigurationIteratorAttributes()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class AbstractXPathTest
Throws:
Exception

testIterateAllAttributes

public void testIterateAllAttributes()
Tests to iterate over all attributes.


testIterateSpecificAttribute

public void testIterateSpecificAttribute()
Tests to iterate over attributes with a specific name.


testIterateUnknownAttribute

public void testIterateUnknownAttribute()
Tests to iterate over non existing attributes.


testIterateNamespace

public void testIterateNamespace()
Tests iteration when a namespace is specified. This is not supported, so the iteration should be empty.



Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.