testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNamespaceInScope2.java [41:49]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void runTest() throws Throwable {
        OMFactory factory = metaFactory.getOMFactory();
        OMElement parent = factory.createOMElement("parent", "urn:test", "p1");
        OMElement child = variant.createOMElement(factory, parent, "child", "urn:test", "p2");
        OMNamespace ns = factory.createOMNamespace("urn:test", "p2");
        assertEquals(ns, child.getNamespace());
        Iterator<OMNamespace> it = child.getAllDeclaredNamespaces();
        assertTrue(it.hasNext());
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



testing/axiom-testsuite/src/main/java/org/apache/axiom/ts/om/factory/TestCreateOMElementWithNamespaceInScope3.java [41:49]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    protected void runTest() throws Throwable {
        OMFactory factory = metaFactory.getOMFactory();
        OMElement parent = factory.createOMElement("parent", "urn:test", "p");
        OMElement child = variant.createOMElement(factory, parent, "child", "urn:test", "");
        OMNamespace ns = factory.createOMNamespace("urn:test", "");
        assertEquals(ns, child.getNamespace());
        Iterator<OMNamespace> it = child.getAllDeclaredNamespaces();
        assertTrue(it.hasNext());
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



