Class ShouldHaveAttribute

java.lang.Object
org.assertj.core.error.BasicErrorMessageFactory
org.xmlunit.assertj3.error.ShouldHaveAttribute
All Implemented Interfaces:
org.assertj.core.error.ErrorMessageFactory

public class ShouldHaveAttribute extends org.assertj.core.error.BasicErrorMessageFactory
Since:
XMLUnit 2.8.1
  • Constructor Details

    • ShouldHaveAttribute

      private ShouldHaveAttribute(String nodeName, String attributeName)
    • ShouldHaveAttribute

      private ShouldHaveAttribute(String nodeName, String attributeName, String attributeValue)
  • Method Details

    • shouldHaveAttribute

      public static org.assertj.core.error.ErrorMessageFactory shouldHaveAttribute(String nodeName, String attributeName)
      Parameters:
      nodeName - name of element
      attributeName - name of attribute
      Returns:
      ErrorMessageFactory when element doesn't have attribute
    • shouldHaveAttributeWithValue

      public static org.assertj.core.error.ErrorMessageFactory shouldHaveAttributeWithValue(String nodeName, String attributeName, String attributeValue)
      Parameters:
      nodeName - name of element
      attributeName - name of attribute
      attributeValue - expected value of attribute
      Returns:
      ErrorMessageFactory when element doesn't have attribute or value doesn't match