org.apache.axiom.ts.dom.document
Class TestAdoptNodeToSameDocument

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.dom.DOMTestCase
                  extended by org.apache.axiom.ts.dom.document.TestAdoptNodeToSameDocument
All Implemented Interfaces:
junit.framework.Test

public class TestAdoptNodeToSameDocument
extends DOMTestCase

Tests the behavior of Document.adoptNode(Node) if the node is already owned by the document. In this case, the method is still expected to detach the node from its parent.


Field Summary
 
Fields inherited from class org.apache.axiom.ts.dom.DOMTestCase
dbf
 
Constructor Summary
TestAdoptNodeToSameDocument(DocumentBuilderFactory dbf)
           
 
Method Summary
protected  void runTest()
           
 
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

TestAdoptNodeToSameDocument

public TestAdoptNodeToSameDocument(DocumentBuilderFactory dbf)
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.