Class ElementsShouldSatisfy.UnsatisfiedRequirement

  • Enclosing class:
    ElementsShouldSatisfy

    public static class ElementsShouldSatisfy.UnsatisfiedRequirement
    extends java.lang.Object
    Holds the element not satisfing a requirement and the error message.
    • Constructor Summary

      Constructors 
      Constructor Description
      UnsatisfiedRequirement​(java.lang.Object elementNotSatisfyingRequirements, java.lang.String errorMessage)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String describe​(org.assertj.core.api.AssertionInfo info)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • elementNotSatisfyingRequirements

        private final java.lang.Object elementNotSatisfyingRequirements
      • errorMessage

        private final java.lang.String errorMessage
    • Constructor Detail

      • UnsatisfiedRequirement

        public UnsatisfiedRequirement​(java.lang.Object elementNotSatisfyingRequirements,
                                      java.lang.String errorMessage)
        Parameters:
        elementNotSatisfyingRequirements - the element not satsfying the requirement
        errorMessage - the error message
    • Method Detail

      • describe

        public java.lang.String describe​(org.assertj.core.api.AssertionInfo info)
        Parameters:
        info - assertion info
        Returns:
        the formatted description
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object