org.apache.axiom.ts.om.factory
Class TestCreateOMElementWithNamespaceInScope1

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by org.apache.axiom.testutils.suite.TestCaseEx
              extended by org.apache.axiom.ts.AxiomTestCase
                  extended by org.apache.axiom.ts.om.factory.CreateOMElementTestCase
                      extended by org.apache.axiom.ts.om.factory.TestCreateOMElementWithNamespaceInScope1
All Implemented Interfaces:
junit.framework.Test

public class TestCreateOMElementWithNamespaceInScope1
extends CreateOMElementTestCase

Tests the behavior of the createOMElement methods in OMFactory if no namespace prefix is given and an existing namespace declaration is in scope. In this case, createOMElement must use the existing prefix. Note that this only applies if a parent is specified for the OMElement to be created.


Field Summary
 
Fields inherited from class org.apache.axiom.ts.om.factory.CreateOMElementTestCase
parentSupplier, variant
 
Fields inherited from class org.apache.axiom.ts.AxiomTestCase
metaFactory, TEST_PARSER_CONFIGURATION
 
Constructor Summary
TestCreateOMElementWithNamespaceInScope1(OMMetaFactory metaFactory, CreateOMElementVariant variant)
           
 
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

TestCreateOMElementWithNamespaceInScope1

public TestCreateOMElementWithNamespaceInScope1(OMMetaFactory metaFactory,
                                                CreateOMElementVariant variant)
Method Detail

runTest

protected void runTest()
                throws Throwable
Specified by:
runTest in class org.apache.axiom.testutils.suite.TestCaseEx
Throws:
Throwable


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.