public void testGetAttributeNodeNS1() throws Throwable {
  String namespaceURI="http://www.nist.gov";
  String localName="invalidlocalname";
  Document doc;
  NodeList elementList;
  Element testAddr;
  Attr attribute;
  doc=(Document)load("staffNS",builder);
  elementList=doc.getElementsByTagName("emp:address");
  testAddr=(Element)elementList.item(0);
  assertNotNull("empAddrNotNull",testAddr);
  attribute=testAddr.getAttributeNodeNS(namespaceURI,localName);
  assertNull("throw_Null",attribute);
}

public void testGetAttributeNodeNS1 ( ) throws Throwable { String namespaceURI = "http://www.nist.gov" ; String localName = "invalidlocalname" ; Document doc ; NodeList elementList ; Element testAddr ; Attr attribute ; doc = ( Document ) load ( "staffNS" , builder ) ; elementList = doc . getElementsByTagName ( "emp:address" ) ; testAddr = ( Element ) elementList . item ( 0 ) ; assertNotNull ( "empAddrNotNull" , testAddr ) ; attribute = testAddr . getAttributeNodeNS ( namespaceURI , localName ) ; assertNull ( "throw_Null" , attribute ) ; }
runs the test case .
