Package org.sonar.test.html
Class HtmlListAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<T,org.jsoup.nodes.Element>
-
- org.sonar.test.html.HtmlBlockAssert<HtmlListAssert>
-
- org.sonar.test.html.HtmlListAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<HtmlListAssert,org.jsoup.nodes.Element>
,org.assertj.core.api.Descriptable<HtmlListAssert>
,org.assertj.core.api.ExtensionPoints<HtmlListAssert,org.jsoup.nodes.Element>
public class HtmlListAssert extends HtmlBlockAssert<HtmlListAssert>
-
-
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.sonar.test.html.HtmlBlockAssert
withEmphasisOn, withLink, withLinkOn, withLinkOn, withoutLink, withSmallOn
-
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
-
-
-
-
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 ashasParagraph().withText(text)
.
-
hasEmptyParagraph
public HtmlParagraphAssert hasEmptyParagraph()
Verifies next paragraph is empty or contains only " "
-
hasParagraph
public HtmlParagraphAssert hasParagraph()
-
-