Code example for NamespaceSupport

Methods: getURI, popContext

0
                expected.containsAll(prefixes) && prefixes.containsAll(expected));
    } 
 
    public void testGetUri() { 
        assertEquals("Test 1: Incorrect URI returned;",
                marketUri, ns.getURI("bk"));
        assertEquals("Test 2: Incorrect URI returned;",
                defaultUri, ns.getURI(""));
        assertNull("Test 3: Null expected for not-existing prefix.",
                ns.getURI("ck"));
 
        ns.popContext();
        assertNull("Test 4: Null expected for not-existing prefix.",
                ns.getURI("bk"));
        assertEquals("Test 5: Incorrect URI returned;",
                NamespaceSupport.XMLNS, ns.getURI("xml"));
    } 
 
    public void testNamespaceDeclUris() { 
 
        assertFalse("Test 1: Incorrect default value returned by isNamespaceDeclUris().",