Class HtmlBlockAssert<T extends HtmlBlockAssert<T>>

  • All Implemented Interfaces:
    org.assertj.core.api.Assert<T,​org.jsoup.nodes.Element>, org.assertj.core.api.Descriptable<T>, org.assertj.core.api.ExtensionPoints<T,​org.jsoup.nodes.Element>
    Direct Known Subclasses:
    HtmlListAssert, HtmlParagraphAssert

    public abstract class HtmlBlockAssert<T extends HtmlBlockAssert<T>>
    extends org.assertj.core.api.AbstractAssert<T,​org.jsoup.nodes.Element>
    • Field Summary

      • Fields inherited from class org.assertj.core.api.AbstractAssert

        actual, info, myself, objects, throwUnsupportedExceptionOnEquals
    • Constructor Summary

      Constructors 
      Constructor Description
      HtmlBlockAssert​(org.jsoup.nodes.Element v, java.lang.Class<T> selfType)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T withEmphasisOn​(java.lang.String emphasisText)  
      T withLink​(java.lang.String linkText, java.lang.String href)
      Verifies the current block contains a link with the specified text and href.
      T withLinkOn​(java.lang.String linkText)
      Verifies the current block contains a single link with the specified piece of text.
      T withLinkOn​(java.lang.String linkText, int times)
      Verifies the current block contains times links with the specified piece of text.
      T withoutLink()  
      T withSmallOn​(java.lang.String emphasisText)  
      • Methods inherited from class org.assertj.core.api.AbstractAssert

        asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, equals, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, setCustomRepresentation, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, withRepresentation, withThreadDumpOnError
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.assertj.core.api.Descriptable

        as, as, describedAs
    • Constructor Detail

      • HtmlBlockAssert

        public HtmlBlockAssert​(org.jsoup.nodes.Element v,
                               java.lang.Class<T> selfType)
    • Method Detail

      • withLinkOn

        public T withLinkOn​(java.lang.String linkText)
        Verifies the current block contains a single link with the specified piece of text.
      • withLinkOn

        public T withLinkOn​(java.lang.String linkText,
                            int times)
        Verifies the current block contains times links with the specified piece of text.
      • withLink

        public T withLink​(java.lang.String linkText,
                          java.lang.String href)
        Verifies the current block contains a link with the specified text and href.
      • withoutLink

        public T withoutLink()
      • withEmphasisOn

        public T withEmphasisOn​(java.lang.String emphasisText)
      • withSmallOn

        public T withSmallOn​(java.lang.String emphasisText)