I am writing a
test unit which is mocking elements from a XML converted into a document.
But at one stage I am returning a nodeList with two elements.
So instead of the code
which wont work since periodOfStayElement.getNodeName()). can only be CheckInDate or CheckOutDate i need to at this level
I need to return a real not mocked NodeList .
NodeList is a interface, but what i cant find is the nodelist object that implements NodeList.
Is it possible outside the DOm to be able to create this NodeListObject or are the objects proprietary to org.w3c.dom, and you can only create this objects when turning an XML into a document.
Thank you for any help