Package org.opensaml.core.xml.util
Class AttributeMapTest
- java.lang.Object
-
- org.opensaml.core.testing.OpenSAMLInitBaseTestCase
-
- org.opensaml.core.testing.XMLObjectBaseTestCase
-
- org.opensaml.core.xml.util.AttributeMapTest
-
public class AttributeMapTest extends XMLObjectBaseTestCase
Test the NamespaceManger used by XMLObjects.
-
-
Field Summary
Fields Modifier and Type Field Description private AttributeMapattributeMapprivate static QNameelementNameprivate static Stringns1private static Stringns1Prefixprivate static Stringns2private static Stringns2Prefixprivate static Stringns3private static Stringns3Prefixprivate AttributeExtensibleXMLObjectownerprivate XMLObjectBuilder<XSAny>xsAnyBuilder-
Fields inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
builderFactory, marshallerFactory, parserPool, simpleXMLObjectQName, unmarshallerFactory
-
-
Constructor Summary
Constructors Constructor Description AttributeMapTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private NamespacebuildNamespace(QName name)private voidcheckNamespaces(XMLObject xo, Integer nsSize, QName... names)Check the namespaces produced by the object against the supplied list of QNames.private booleanequals(Namespace nsa, Namespace nsb)protected voidsetUp()voidtestAttributeMapQualifiedAttributes()voidtestClear()voidtestQNameAttributeValueAsQName()voidtestQNameAttributeValueAsString()-
Methods inherited from class org.opensaml.core.testing.XMLObjectBaseTestCase
assertXMLEquals, assertXMLEquals, buildXMLObject, getBuilder, getMarshaller, getMarshaller, getUnmarshaller, getUnmarshaller, getUnmarshaller, initXMLObjectSupport, parseXMLDocument, printXML, printXML, unmarshallElement, unmarshallElement
-
Methods inherited from class org.opensaml.core.testing.OpenSAMLInitBaseTestCase
initOpenSAML
-
-
-
-
Field Detail
-
owner
private AttributeExtensibleXMLObject owner
-
attributeMap
private AttributeMap attributeMap
-
ns1
private static String ns1
-
ns1Prefix
private static String ns1Prefix
-
ns2
private static String ns2
-
ns2Prefix
private static String ns2Prefix
-
ns3
private static String ns3
-
ns3Prefix
private static String ns3Prefix
-
elementName
private static QName elementName
-
xsAnyBuilder
private XMLObjectBuilder<XSAny> xsAnyBuilder
-
-
Method Detail
-
testClear
public void testClear()
-
testAttributeMapQualifiedAttributes
public void testAttributeMapQualifiedAttributes()
-
testQNameAttributeValueAsString
public void testQNameAttributeValueAsString()
-
testQNameAttributeValueAsQName
public void testQNameAttributeValueAsQName()
-
checkNamespaces
private void checkNamespaces(XMLObject xo, Integer nsSize, QName... names)
Check the namespaces produced by the object against the supplied list of QNames.- Parameters:
xo- the XMLObject to evaluatensSize- the expected size of the XMLObject's namespace set (may be different than the size of the names list due to duplicates in the latter)names- the list of names to check
-
-