public void testGetLocalName1() throws Throwable {
  Document doc;
  NodeList elementList;
  Element testAddr;
  Attr addrAttr;
  String localName;
  doc=(Document)load("staffNS",builder);
  elementList=doc.getElementsByTagName("emp:address");
  testAddr=(Element)elementList.item(0);
  assertNotNull("empAddrNotNull",testAddr);
  addrAttr=testAddr.getAttributeNode("emp:domestic");
  localName=addrAttr.getLocalName();
  assertEquals("localName","domestic",localName);
}

public void testGetLocalName1 ( ) throws Throwable { Document doc ; NodeList elementList ; Element testAddr ; Attr addrAttr ; String localName ; doc = ( Document ) load ( "staffNS" , builder ) ; elementList = doc . getElementsByTagName ( "emp:address" ) ; testAddr = ( Element ) elementList . item ( 0 ) ; assertNotNull ( "empAddrNotNull" , testAddr ) ; addrAttr = testAddr . getAttributeNode ( "emp:domestic" ) ; localName = addrAttr . getLocalName ( ) ; assertEquals ( "localName" , "domestic" , localName ) ; }
runs the test case .
