@DoNotObfuscate
public final class ImageValidator
extends com.pdfunit.validators.AbstractPageValidator
Modifier | Constructor and Description |
---|---|
protected |
ImageValidator(DocumentValidator documentValidator) |
protected |
ImageValidator(PageValidator pageValidator) |
Modifier and Type | Method and Description |
---|---|
ImageValidator |
flipped(FlipDirection flipDirection) |
ImageValidator |
hasImage()
This method checks that images exist inside the given region on each of
the specified pages.
|
ImageValidator |
hasNoImage() |
ImageValidator |
hasNumberOfDifferentImages(int expectedNumber)
This method verifies the different images in the specified region on the specified pages.
|
ImageValidator |
hasNumberOfVisibleImages(int expectedNumber)
This method verifies that the specified region and pages have the expected number of images.
|
ImageValidator |
matching(java.awt.image.BufferedImage expectedImage)
This method verifies that one of the extracted images is equal to
the expected image which is given by the parameter.
|
ImageValidator |
matching(java.io.File expectedImageFile)
This method verifies that one of the extracted images is equal to
the expected image which is given by the parameter.
|
ImageValidator |
matching(java.io.InputStream expectedImageStream)
This method verifies that one of the extracted images is equal to
the expected image which is given by the parameter.
|
ImageValidator |
matching(java.lang.String expectedImageFileName)
This method verifies that one of the extracted images is equal to
the expected image which is given by the parameter.
|
ImageValidator |
matching(java.net.URL expectedImageUrl)
This method verifies that one of the extracted images is equal to
the expected image which is given by the parameter.
|
ImageValidator |
matchingOneOf(java.awt.image.BufferedImage[] allExpectedImages)
This method verifies that one of the given images is present on the specified pages.
|
ImageValidator |
rotatedBy(Rotation rotation) |
BarcodeValidator |
withBarcode()
This method prepares the test system to extract text from bar code images as
well as from QR code images.
|
BarcodeValidator |
withBarcodeInRegion(ImageRegion imageRegion)
This method prepares the test system to extract text from bar code images as
well as from QR code images.
|
ImageValidator |
withHeightInPixel(int expectedHeightInPixel)
This method verifies that one of the given images has the expected height.
|
BarcodeValidator |
withQRCode()
This method prepares the test system to extract text from QR code images as
well as from bar code images.
|
BarcodeValidator |
withQRCodeInRegion(ImageRegion imageRegion)
This method prepares the test system to extract text from QR code images as
well as from bar code images.
|
OCRValidator |
withText()
This method prepares the test system to extract text from images using OCR.
|
OCRValidator |
withTextInRegion(ImageRegion inImageRegion)
This method prepares the test system to extract text from images using OCR.
|
ImageValidator |
withWidthInPixel(int expectedWidthInPixel)
This method verifies that one of the given images has the expected width.
|
createFullSizeRegionFromDocument, getEffectedPages, getPageScanFlag, setPagesToUse, setRegion
protected ImageValidator(DocumentValidator documentValidator)
protected ImageValidator(PageValidator pageValidator)
public ImageValidator flipped(FlipDirection flipDirection)
@Guarded public ImageValidator hasImage()
public ImageValidator hasNoImage()
@Guarded public ImageValidator hasNumberOfDifferentImages(int expectedNumber)
@Guarded public ImageValidator hasNumberOfVisibleImages(int expectedNumber)
@Guarded public ImageValidator matching(java.lang.String expectedImageFileName)
@Guarded public ImageValidator matching(java.io.File expectedImageFile)
@Guarded public ImageValidator matching(java.io.InputStream expectedImageStream)
@Guarded public ImageValidator matching(java.net.URL expectedImageUrl)
@Guarded public ImageValidator matching(java.awt.image.BufferedImage expectedImage)
@Guarded public ImageValidator matchingOneOf(java.awt.image.BufferedImage[] allExpectedImages)
public ImageValidator rotatedBy(Rotation rotation)
public BarcodeValidator withBarcode()
This method does the same as withQRCode()
.
public BarcodeValidator withBarcodeInRegion(ImageRegion imageRegion)
This method does the same as withQRCodeInRegion(ImageRegion)
.
public BarcodeValidator withQRCode()
This method does the same as withBarcode()
.
public BarcodeValidator withQRCodeInRegion(ImageRegion imageRegion)
This method does the same as withBarcodeInRegion(ImageRegion)
.
@Guarded public ImageValidator withHeightInPixel(int expectedHeightInPixel)
public OCRValidator withText()
public OCRValidator withTextInRegion(ImageRegion inImageRegion)
@Guarded public ImageValidator withWidthInPixel(int expectedWidthInPixel)
Copyright (C) PDFUnit.com. See here for license.