public class TestGetNamespaceNormalized extends AxiomTestCase
OMNamedInformationItem.getNamespace()
returns null
for an element
with no namespace. The case considered in this test is a programmatically created element without
namespace that is added as a child to another element that has a default namespace. Earlier
versions of Axiom returned a non null value in this case to work around an issue in the
serialization code.
The test is executed twice: once with a null
OMNamespace
and once with an
OMNamespace
object with prefix and namespace URI set to the empty string. The expected
result is the same in both cases.
This is a regression test for AXIOM-398.
metaFactory, TEST_PARSER_CONFIGURATION
Constructor and Description |
---|
TestGetNamespaceNormalized(OMMetaFactory metaFactory,
boolean useNull) |
Modifier and Type | Method and Description |
---|---|
protected void |
runTest() |
assertConsumed, getChildrenCount, getNumberOfOccurrences
addTestProperty, getTestProperties
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, setName, setUp, tearDown, toString
public TestGetNamespaceNormalized(OMMetaFactory metaFactory, boolean useNull)
protected void runTest() throws Throwable
runTest
in class TestCaseEx
Throwable
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.