Package net.qdevzone.docunit.pdf
Class PdfAssertions
- All Implemented Interfaces:
Assert<PdfAssertions>,PagedDocAsserts<PdfAssertions>
public class PdfAssertions
extends AbstractDocAssert<PdfAssertions>
implements PagedDocAsserts<PdfAssertions>
-
Field Summary
Fields inherited from class net.qdevzone.docunit.AbstractDocAssert
info, myself -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]actual()Returns actual (the data currently under test).hasPageCount(int count) hasPageCount(int min, int max) hasPageHeight(int pageNum, float expectedSize) hasPages()hasPageSize(int pageNum, float width, float height) hasPageSize(int pageNum, Rectangle2D expectedBox) hasPageWidth(int pageNum, float expectedSize) hasTextInPage(int pageNum, CharSequence search) hasTextInPage(int pageNum, CharSequence search, Rectangle2D area) hasTextInPage(int pageNum, CharSequence search, Rectangle2D area, boolean fullyCovertArea) isPdfA()isValid()Methods inherited from class net.qdevzone.docunit.AbstractDocAssert
createInputStream, describedAs, describedAs, describedAs, failure, failureWithCause, isElementOfCustomAssert, isEmpty, isEqualTo, isIn, isNotEmpty, isNotEqualTo, isNotIn, isSize, isSizeBetween
-
Constructor Details
-
PdfAssertions
-
-
Method Details
-
isValid
- Specified by:
isValidin interfaceAssert<PdfAssertions>
-
isNotValid
- Specified by:
isNotValidin interfaceAssert<PdfAssertions>
-
actual
public byte[] actual()Description copied from interface:AssertReturns actual (the data currently under test).- Specified by:
actualin interfaceAssert<PdfAssertions>
-
hasPages
- Specified by:
hasPagesin interfacePagedDocAsserts<PdfAssertions>
-
hasPageCount
- Specified by:
hasPageCountin interfacePagedDocAsserts<PdfAssertions>
-
hasPageCount
- Specified by:
hasPageCountin interfacePagedDocAsserts<PdfAssertions>
-
hasTextInPage
-
hasTextInPage
-
hasTextInPage
public PdfAssertions hasTextInPage(int pageNum, CharSequence search, Rectangle2D area, boolean fullyCovertArea) -
hasPageSize
-
hasPageSize
-
hasPageWidth
-
hasPageHeight
-
isPdfA
-
isPdfA
-