public SingleNodeAssert hasAttribute ( String attributeName ) { isNotNull ( ) ; final Map . Entry < QName , String > entry = attributeForName ( attributeName ) ; if ( entry == null ) { throwAssertionError ( shouldHaveAttribute ( actual . getNodeName ( ) , attributeName ) ) ; } return this ; }
Verifies that node has attribute with given name .