resolve INT-835

This commit is contained in:
Jonas Partner
2009-10-07 20:39:04 +00:00
parent 26a03f2c1e
commit fbac7b1c13
2 changed files with 64 additions and 51 deletions

View File

@@ -112,4 +112,12 @@ public class DefaultXmlPayloadConverterTests {
converter.convertToSource(12);
}
@Test
public void testGetNodePassingDOMSource(){
Node element = (Node) testDocument.getElementsByTagName("test").item(0);
Node n = converter.convertToNode(new DOMSource(element));
assertTrue("Wrong node returned", element == n);
}
}