Class HtmlListAssert

    • Field Summary

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

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

      Constructors 
      Constructor Description
      HtmlListAssert​(org.jsoup.nodes.Element list, java.util.Iterator<org.jsoup.nodes.Element> nextBlocks)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HtmlParagraphAssert hasEmptyParagraph()
      Verifies next paragraph is empty or contains only " "
      HtmlParagraphAssert hasParagraph()  
      HtmlParagraphAssert hasParagraph​(java.lang.String text)
      Convenience method.
      HtmlListAssert withItemTexts​(java.lang.String firstItemText, java.lang.String... otherItemsText)
      Verifies the text of every items in the current list is equal to the specified strings, in order.
      • Methods inherited from class org.assertj.core.api.AbstractAssert

        areEqual, asInstanceOf, asList, assertionError, asString, describedAs, descriptionText, doesNotHave, doesNotHaveSameClassAs, doesNotHaveSameHashCodeAs, doesNotHaveToString, equals, extracting, extracting, failure, failureWithActualExpected, failWithActualExpectedAndMessage, failWithMessage, getWritableAssertionInfo, has, hashCode, hasSameClassAs, hasSameHashCodeAs, hasToString, inBinary, inHexadecimal, is, isElementOfCustomAssert, isEqualTo, isExactlyInstanceOf, isIn, isIn, isInstanceOf, isInstanceOfAny, isInstanceOfSatisfying, isNot, isNotEqualTo, isNotExactlyInstanceOf, isNotIn, isNotIn, isNotInstanceOf, isNotInstanceOfAny, isNotNull, isNotOfAnyClassIn, isNotSameAs, isNull, isOfAnyClassIn, isSameAs, matches, matches, newListAssertInstance, overridingErrorMessage, overridingErrorMessage, satisfies, satisfies, satisfies, satisfiesAnyOf, satisfiesAnyOf, satisfiesAnyOfForProxy, satisfiesForProxy, setCustomRepresentation, setDescriptionConsumer, setPrintAssertionsDescription, throwAssertionError, usingComparator, usingComparator, usingDefaultComparator, usingRecursiveComparison, usingRecursiveComparison, withFailMessage, 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, as, describedAs
    • Constructor Detail

      • HtmlListAssert

        public HtmlListAssert​(org.jsoup.nodes.Element list,
                              java.util.Iterator<org.jsoup.nodes.Element> nextBlocks)
    • Method Detail

      • withItemTexts

        public HtmlListAssert withItemTexts​(java.lang.String firstItemText,
                                            java.lang.String... otherItemsText)
        Verifies the text of every items in the current list is equal to the specified strings, in order.
      • hasParagraph

        public HtmlParagraphAssert hasParagraph​(java.lang.String text)
        Convenience method. Sames as hasParagraph().withText(text).
      • hasEmptyParagraph

        public HtmlParagraphAssert hasEmptyParagraph()
        Verifies next paragraph is empty or contains only " "