Class NamespaceManagerTest


  • public class NamespaceManagerTest
    extends XMLObjectBaseTestCase
    Test the NamespaceManger used by XMLObjects.
    • Constructor Detail

      • NamespaceManagerTest

        public NamespaceManagerTest()
    • Method Detail

      • testObjectName

        public void testObjectName()
      • testObjectType

        public void testObjectType()
      • testQNameElementContent

        public void testQNameElementContent()
      • testQualifiedAttributes

        public void testQualifiedAttributes()
      • testQNameAttributeValue

        public void testQNameAttributeValue()
      • testNSDeclaration

        public void testNSDeclaration()
      • testNonVisibleNamespacePrefixes

        public void testNonVisibleNamespacePrefixes()
      • 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 evaluate
        nsSize - 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