public class ElementSupportTest extends Object
ElementSupport. These tests use Test.dependsOnMethods() to ensure that we suppress a test if
functionality it relies on has not been tested correctly. This avoids false failures.| Modifier and Type | Field and Description |
|---|---|
private static String |
OTHER_NS |
private net.shibboleth.utilities.java.support.xml.BasicParserPool |
parserPool |
private static String |
ROOT_ELEMENT |
private Element |
rootElement |
private static String |
TEST_ELEMENT_NAME |
private static QName |
TEST_ELEMENT_QNAME |
private static String |
TEST_NS |
private static String |
TEST_PREFIX |
private Document |
testerDocument |
private Document |
testFileDocument |
| Constructor and Description |
|---|
ElementSupportTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
setUp() |
void |
testAdoptElement() |
void |
testAppendChildElement() |
void |
testAppendChildText() |
void |
testConstructElement() |
void |
testConstructElementBadParms() |
void |
testGetChildAndNext() |
void |
testGetChildElements() |
void |
testGetChildElementsByTagName() |
void |
testGetElementAncestor() |
void |
testGetElementContentAsList() |
void |
testGetElementContentAsQName() |
void |
testGetElementContentAsString() |
void |
testGetIndexedChildElements() |
void |
testIsElementNamed() |
void |
testSetDocumentElement() |
private static final String TEST_NS
private static final String OTHER_NS
private static final String TEST_PREFIX
private static final String TEST_ELEMENT_NAME
private static final String ROOT_ELEMENT
private static final QName TEST_ELEMENT_QNAME
private net.shibboleth.utilities.java.support.xml.BasicParserPool parserPool
private Document testFileDocument
private Document testerDocument
private Element rootElement
public void setUp()
throws net.shibboleth.utilities.java.support.xml.XMLParserException,
net.shibboleth.utilities.java.support.component.ComponentInitializationException,
SAXException,
IOException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionnet.shibboleth.utilities.java.support.component.ComponentInitializationExceptionSAXExceptionIOExceptionpublic void testIsElementNamed()
public void testGetChildElements()
public void testGetChildElementsByTagName()
public void testGetElementAncestor()
public void testGetElementContentAsString()
public void testGetElementContentAsList()
public void testGetElementContentAsQName()
public void testGetChildAndNext()
public void testGetIndexedChildElements()
public void testAdoptElement()
throws net.shibboleth.utilities.java.support.xml.XMLParserException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionpublic void testAppendChildElement()
throws net.shibboleth.utilities.java.support.xml.XMLParserException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionpublic void testAppendChildText()
public void testConstructElement()
throws net.shibboleth.utilities.java.support.xml.XMLParserException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionpublic void testConstructElementBadParms()
throws net.shibboleth.utilities.java.support.xml.XMLParserException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionpublic void testSetDocumentElement()
throws net.shibboleth.utilities.java.support.xml.XMLParserException
net.shibboleth.utilities.java.support.xml.XMLParserExceptionCopyright © 1999–2019 Shibboleth Consortium. All rights reserved.