org.apache.axiom.ts.dom.element
Class TestReplaceChildLast

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.element.ReplaceChildTestCase
                      extended by org.apache.axiom.ts.dom.element.TestReplaceChildLast
All Implemented Interfaces:
junit.framework.Test

public class TestReplaceChildLast
extends ReplaceChildTestCase

Tests the behavior of Node.replaceChild(Node, Node). This test covers the case where the child being replaced is the last child (which uses a different code path in DOOM).


Field Summary
 
Fields inherited from class org.apache.axiom.ts.dom.DOMTestCase
dbf
 
Constructor Summary
TestReplaceChildLast(DocumentBuilderFactory dbf, boolean newChildHasSiblings)
           
 
Method Summary
protected  void runTest(Document doc, Node newChild)
           
 
Methods inherited from class org.apache.axiom.ts.dom.element.ReplaceChildTestCase
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

TestReplaceChildLast

public TestReplaceChildLast(DocumentBuilderFactory dbf,
                            boolean newChildHasSiblings)
Method Detail

runTest

protected void runTest(Document doc,
                       Node newChild)
Specified by:
runTest in class ReplaceChildTestCase


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