Package org.sonar.test.html
Class HtmlParagraphAssert
- java.lang.Object
-
- org.assertj.core.api.AbstractAssert<T,org.jsoup.nodes.Element>
-
- org.sonar.test.html.HtmlBlockAssert<HtmlParagraphAssert>
-
- org.sonar.test.html.HtmlParagraphAssert
-
- All Implemented Interfaces:
org.assertj.core.api.Assert<HtmlParagraphAssert,org.jsoup.nodes.Element>
,org.assertj.core.api.Descriptable<HtmlParagraphAssert>
,org.assertj.core.api.ExtensionPoints<HtmlParagraphAssert,org.jsoup.nodes.Element>
public class HtmlParagraphAssert extends HtmlBlockAssert<HtmlParagraphAssert>
-
-
Constructor Summary
Constructors Constructor Description HtmlParagraphAssert(org.jsoup.nodes.Element paragraph, 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 " "HtmlListAssert
hasList()
HtmlListAssert
hasList(java.lang.String firstItemText, java.lang.String... otherItemsText)
Convenience method.HtmlParagraphAssert
hasParagraph()
Verify the next block exists, is a paragraph and returns an Assert on this block.HtmlParagraphAssert
hasParagraph(java.lang.String text)
Convenience method.void
noMoreBlock()
Verifies there is no more block.HtmlParagraphAssert
withLines(java.lang.String firstLine, java.lang.String... otherLines)
Verifies the current block has all and only the specified lines, in order.HtmlParagraphAssert
withText(java.lang.String text)
Verifies the current block as the specified text, ignoring lines.-
Methods inherited from class org.sonar.test.html.HtmlBlockAssert
withEmphasisOn, withLink, withLinkOn, withLinkOn, withoutLink, withSmallOn
-
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
-
-
-
-
Method Detail
-
hasParagraph
public HtmlParagraphAssert hasParagraph()
Verify the next block exists, is a paragraph and returns an Assert on this block.
-
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 " "
-
noMoreBlock
public void noMoreBlock()
Verifies there is no more block.
-
withText
public HtmlParagraphAssert withText(java.lang.String text)
Verifies the current block as the specified text, ignoring lines.
-
withLines
public HtmlParagraphAssert withLines(java.lang.String firstLine, java.lang.String... otherLines)
Verifies the current block has all and only the specified lines, in order.
-
hasList
public HtmlListAssert hasList(java.lang.String firstItemText, java.lang.String... otherItemsText)
Convenience method. Same ashasList().withItemTexts("foo", "bar")
.
-
hasList
public HtmlListAssert hasList()
-
-