Class AttributeSupportTest
- java.lang.Object
-
- net.shibboleth.utilities.java.support.xml.AttributeSupportTest
-
public class AttributeSupportTest extends Object
Tests forAttributeSupport;
-
-
Field Summary
Fields Modifier and Type Field Description private Elementattributesprivate ElementbadSpaceprivate ElementcreatedElementprivate Documentdocumentprivate ElementgoodBaseIdSpaceLangprivate QNameidAttrQNameprivate ElementnoBaseIdSpaceLangprivate BasicParserPoolparserPoolprivate ElementpreserveSpaceprivate static StringTEST_ID_ATTRIBUTEprivate static StringTEST_ID_ATTRIBUTE_VALUEprivate static StringTEST_ID_PREFIXEDATTRIBUTEprivate static StringTEST_NSprivate static StringTEST_PREFIX
-
Constructor Summary
Constructors Constructor Description AttributeSupportTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private <T> TnullValue()voidresetCreatedElement()voidsetUp()voidtestAppends()voidtestBadNS()Strictly speaking this test is for the parser.voidtestConstructAttribute()voidtestGetAttributeMethods()voidtestGetID()voidtestGetXMLId()voidtestHasAttribute()voidtestRemoveAttribute()voidtestXMLBase()voidtestXMLLang()voidtestXMLSpace()
-
-
-
Field Detail
-
TEST_NS
@Nonnull @NotEmpty private static final String TEST_NS
- See Also:
- Constant Field Values
-
TEST_PREFIX
@Nonnull @NotEmpty private static final String TEST_PREFIX
- See Also:
- Constant Field Values
-
TEST_ID_ATTRIBUTE
@Nonnull @NotEmpty private static final String TEST_ID_ATTRIBUTE
- See Also:
- Constant Field Values
-
TEST_ID_PREFIXEDATTRIBUTE
@Nonnull @NotEmpty private static final String TEST_ID_PREFIXEDATTRIBUTE
- See Also:
- Constant Field Values
-
TEST_ID_ATTRIBUTE_VALUE
@Nonnull @NotEmpty private static final String TEST_ID_ATTRIBUTE_VALUE
- See Also:
- Constant Field Values
-
idAttrQName
private QName idAttrQName
-
goodBaseIdSpaceLang
private Element goodBaseIdSpaceLang
-
noBaseIdSpaceLang
private Element noBaseIdSpaceLang
-
badSpace
private Element badSpace
-
preserveSpace
private Element preserveSpace
-
attributes
private Element attributes
-
createdElement
private Element createdElement
-
document
private Document document
-
parserPool
private BasicParserPool parserPool
-
-
Method Detail
-
setUp
@BeforeClass public void setUp() throws XMLParserException, ComponentInitializationException, SAXException, IOException
-
resetCreatedElement
@BeforeMethod public void resetCreatedElement() throws XMLParserException- Throws:
XMLParserException
-
testBadNS
public void testBadNS() throws XMLParserException, ComponentInitializationException, IOExceptionStrictly speaking this test is for the parser. But we may significant assumptions on this test passing.- Throws:
XMLParserException- if badness happens.ComponentInitializationException- if badness happens.IOException- if badness happens.
-
testGetXMLId
public void testGetXMLId()
-
testXMLBase
public void testXMLBase()
-
testXMLSpace
public void testXMLSpace()
-
testXMLLang
public void testXMLLang()
-
testGetID
public void testGetID()
-
testHasAttribute
public void testHasAttribute()
-
testConstructAttribute
public void testConstructAttribute()
-
testRemoveAttribute
public void testRemoveAttribute()
-
testGetAttributeMethods
public void testGetAttributeMethods()
-
testAppends
public void testAppends()
-
nullValue
private <T> T nullValue()
-
-