resolver = new XPathQueryResolver();
}
public void testElementXPathQuery() throws Exception {
for (int i = 0; i < ELEMENT_QUERY.length; i++) {
NodeSet nodeSet = resolver.query(col, ELEMENT_QUERY[i], null, null);
int results = 0;
Element element = null;
while(nodeSet.hasMoreNodes()) {
element = (Element)nodeSet.getNextNode();
assertNotNull("NodeSet.getNextNode must be not null", element);
results++;
}
assertEquals("Results count", ELEMENT_COUNT[i], results);