question: public void testHasAttributes1 ( ) throws Throwable { Document doc ; Element element ; NodeList elementList ; boolean hasAttributes ; doc = ( Document ) load ( "staff" , builder ) ; elementList = doc . getElementsByTagName ( "employee" ) ; element = ( Element ) elementList . item ( 0 ) ; hasAttributes = element . hasAttributes ( ) ; assertFalse ( "nodehasattributes01_1" , hasAttributes ) ; elementList = doc . getElementsByTagName ( "address" ) ; element = ( Element ) elementList . item ( 0 ) ; hasAttributes = element . hasAttributes ( ) ; assertTrue ( "nodehasattributes01_2" , hasAttributes ) ; }
target:  Runs the test case.