public void runTest() throws Throwable {
  Document doc;
  NodeList elementList;
  Node nameNode;
  CharacterData child;
  String childData;
  int childLength;
  java.util.List result=new java.util.ArrayList();
  doc=(Document)load("staff",true);
  elementList=doc.getElementsByTagName("address");
  nameNode=elementList.item(0);
  child=(CharacterData)nameNode.getFirstChild();
  child.deleteData(30,5);
  childData=child.getData();
  assertEquals("data","1230 North Ave. Dallas, Texas ",childData);
  childLength=(int)child.getLength();
  assertEquals("length",30,childLength);
}

public void runTest ( ) throws Throwable { Document doc ; NodeList elementList ; Node nameNode ; CharacterData child ; String childData ; int childLength ; java . util . List result = new java . util . ArrayList ( ) ; doc = ( Document ) load ( "staff" , true ) ; elementList = doc . getElementsByTagName ( "address" ) ; nameNode = elementList . item ( 0 ) ; child = ( CharacterData ) nameNode . getFirstChild ( ) ; child . deleteData ( 30 , 5 ) ; childData = child . getData ( ) ; assertEquals ( "data" , "1230 North Ave. Dallas, Texas " , childData ) ; childLength = ( int ) child . getLength ( ) ; assertEquals ( "length" , 30 , childLength ) ; }
runs the test case .
