|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.apache.axiom.testutils.suite.TestCaseEx
org.apache.axiom.ts.AxiomTestCase
org.apache.axiom.ts.om.element.TestAddAttributeWithMaskedNamespaceDeclaration
public class TestAddAttributeWithMaskedNamespaceDeclaration
Test checking that OMElement.addAttribute(OMAttribute) correctly generates a
new namespace declaration if an equivalent namespace declaration exists but is masked.
The test attempts to create the following XML:
<a xmlns:p="urn:ns1">
<b xmlns:p="urn:ns2">
<c xmlns:p="urn:ns1" p:attr="test"/>
</b>
</a>
It only explicitly creates the namespace declarations on <a> and
<b>. When adding the attribute to <c>, Axiom must generate
a new namespace declaration because the declaration on <a> is masked
by the one on <b>.
Note that because of WSTX-202, Axiom will not be able to serialize the resulting XML.
| Field Summary |
|---|
| Fields inherited from class org.apache.axiom.ts.AxiomTestCase |
|---|
metaFactory, TEST_PARSER_CONFIGURATION |
| Constructor Summary | |
|---|---|
TestAddAttributeWithMaskedNamespaceDeclaration(OMMetaFactory metaFactory)
|
|
| Method Summary | |
|---|---|
protected void |
runTest()
|
| Methods inherited from class org.apache.axiom.ts.AxiomTestCase |
|---|
assertConsumed, getChildrenCount, getNumberOfOccurrences |
| Methods inherited from class org.apache.axiom.testutils.suite.TestCaseEx |
|---|
addTestProperty, getTestProperties |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, setName, setUp, tearDown, toString |
| Methods inherited from class junit.framework.Assert |
|---|
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, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TestAddAttributeWithMaskedNamespaceDeclaration(OMMetaFactory metaFactory)
| Method Detail |
|---|
protected void runTest()
throws Throwable
runTest in class org.apache.axiom.testutils.suite.TestCaseExThrowable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||