Class ElementSupportTest
- java.lang.Object
-
- net.shibboleth.utilities.java.support.xml.ElementSupportTest
-
public class ElementSupportTest extends Object
TestElementSupport. These tests useTest.dependsOnMethods()to ensure that we suppress a test if functionality it relies on has not been tested correctly. This avoids false failures.
-
-
Field Summary
Fields Modifier and Type Field Description private static StringOTHER_NSprivate BasicParserPoolparserPoolprivate static StringROOT_ELEMENTprivate ElementrootElementprivate static StringTEST_ELEMENT_NAMEprivate static QNameTEST_ELEMENT_QNAMEprivate static StringTEST_NSprivate static StringTEST_PREFIXprivate DocumenttesterDocumentprivate DocumenttestFileDocument
-
Constructor Summary
Constructors Constructor Description ElementSupportTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> TnullValue()voidsetUp()voidtestAdoptElement()voidtestAppendChildElement()voidtestAppendChildText()voidtestConstructElement()voidtestConstructElementBadParms()voidtestGetChildAndNext()voidtestGetChildElements()voidtestGetChildElementsByTagName()voidtestGetElementAncestor()voidtestGetElementContentAsList()voidtestGetElementContentAsQName()voidtestGetElementContentAsString()voidtestGetIndexedChildElements()voidtestIsElementNamed()voidtestSetDocumentElement()
-
-
-
Field Detail
-
TEST_NS
@Nonnull @NotEmpty private static final String TEST_NS
- See Also:
- Constant Field Values
-
OTHER_NS
@Nonnull @NotEmpty private static final String OTHER_NS
- See Also:
- Constant Field Values
-
TEST_PREFIX
@Nonnull @NotEmpty private static final String TEST_PREFIX
- See Also:
- Constant Field Values
-
TEST_ELEMENT_NAME
@Nonnull @NotEmpty private static final String TEST_ELEMENT_NAME
- See Also:
- Constant Field Values
-
ROOT_ELEMENT
@Nonnull @NotEmpty private static final String ROOT_ELEMENT
- See Also:
- Constant Field Values
-
TEST_ELEMENT_QNAME
@Nonnull private static final QName TEST_ELEMENT_QNAME
-
parserPool
private BasicParserPool parserPool
-
testFileDocument
private Document testFileDocument
-
testerDocument
private Document testerDocument
-
rootElement
private Element rootElement
-
-
Method Detail
-
setUp
@BeforeClass public void setUp() throws XMLParserException, ComponentInitializationException, SAXException, IOException
-
testIsElementNamed
public void testIsElementNamed()
-
testGetChildElements
public void testGetChildElements()
-
testGetChildElementsByTagName
public void testGetChildElementsByTagName()
-
testGetElementAncestor
public void testGetElementAncestor()
-
testGetElementContentAsString
public void testGetElementContentAsString()
-
testGetElementContentAsList
public void testGetElementContentAsList()
-
testGetElementContentAsQName
public void testGetElementContentAsQName()
-
testGetChildAndNext
public void testGetChildAndNext()
-
testGetIndexedChildElements
public void testGetIndexedChildElements()
-
testAdoptElement
public void testAdoptElement() throws XMLParserException- Throws:
XMLParserException
-
testAppendChildElement
public void testAppendChildElement() throws XMLParserException- Throws:
XMLParserException
-
testAppendChildText
public void testAppendChildText()
-
testConstructElement
public void testConstructElement() throws XMLParserException- Throws:
XMLParserException
-
testConstructElementBadParms
public void testConstructElementBadParms() throws XMLParserException- Throws:
XMLParserException
-
testSetDocumentElement
public void testSetDocumentElement() throws XMLParserException- Throws:
XMLParserException
-
nullValue
private <T> T nullValue()
-
-