public class XpathUtilsTest extends Object
Constructor and Description |
---|
XpathUtilsTest() |
Modifier and Type | Method and Description |
---|---|
void |
billionLaughs() |
void |
testAsBoolean() |
void |
testAsByte()
Tests that we can correctly pull a Byte out of an XML document.
|
void |
testAsByteBuffer()
Tests that
XpathUtils.asByteBuffer(String, Node) correctly base64
decodes the XML text data and transforms it into a ByteBuffer. |
void |
testAsDate()
Tests that we can correctly parse out a Date from an XML document.
|
void |
testAsFloat() |
void |
testAsInteger() |
void |
testAsNode() |
void |
testAsString() |
void |
testExternalEntity() |
void |
testExternalEntityParameter() |
void |
testExternalSchema() |
void |
testFromDocumentDoesNotWriteToStderrWhenXmlInvalid() |
void |
testIsEmpty() |
void |
testMissingNodes()
Tests that we return null when a specified expression doesn't
evaluate anything (instead of passing that null/empty value to
a parser and getting an error in the parser).
|
void |
testXmlDocumentWithNamespace() |
public void testXmlDocumentWithNamespace() throws Exception
Exception
public void testAsByte() throws Exception
Exception
public void testAsDate() throws Exception
Exception
public void testMissingNodes() throws Exception
Exception
public void testAsByteBuffer() throws Exception
XpathUtils.asByteBuffer(String, Node)
correctly base64
decodes the XML text data and transforms it into a ByteBuffer.Exception
public void testFromDocumentDoesNotWriteToStderrWhenXmlInvalid() throws SAXException, IOException, ParserConfigurationException
public void testExternalEntityParameter() throws Exception
Exception
Copyright © 2023. All rights reserved.