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
Exceptionpublic void testAsByte()
throws Exception
Exceptionpublic void testAsDate()
throws Exception
Exceptionpublic void testMissingNodes()
throws Exception
Exceptionpublic void testAsByteBuffer()
throws Exception
XpathUtils.asByteBuffer(String, Node) correctly base64
decodes the XML text data and transforms it into a ByteBuffer.Exceptionpublic void testFromDocumentDoesNotWriteToStderrWhenXmlInvalid()
throws SAXException,
IOException,
ParserConfigurationException
public void testExternalEntityParameter()
throws Exception
ExceptionCopyright © 2020. All rights reserved.