public class VisuallyCompare extends SelectorMatcher<GalenSpecRun> implements DifferentiatingMatcher<Selector>
| Modifier | Constructor and Description |
|---|---|
protected |
VisuallyCompare() |
getSelector, getSelectorName, matchesSafely, setSelectordescribeMismatchSafely, describeTo, getInternalMatcher, setInternalMatcher_dont_implement_Matcher___instead_extend_BaseMatcher_, isNotNull, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, matchesforEach, spliteratorpublic void add(Difference difference)
add.
add in interface DifferentiatingMatcher<Selector>difference - a Difference object.public String getKey()
getKey in interface Differencespublic Iterator<Difference> iterator()
iterator in interface Iterable<Difference>public void prepend(Difference difference)
prepend.
prepend in interface DifferentiatingMatcher<Selector>difference - a Difference object.public VisuallyCompare whileIgnoring(Selector... ignore)
whileIgnoring.
ignore - a Selector object.VisuallyCompare object.public VisuallyCompare withAllowedErrorPercent(double error)
withAllowedErrorPercent.
error - a double.VisuallyCompare object.public VisuallyCompare withAllowedErrorPixel(int error)
withAllowedErrorPixel.
error - a int.VisuallyCompare object.public VisuallyCompare withAllowedOffset(int offset)
withAllowedOffset.
offset - a int.VisuallyCompare object.public VisuallyCompare withCorrections(GalenCorrectionRect corrections)
withCorrections.
corrections - a GalenCorrectionRect object.VisuallyCompare object.public VisuallyCompare withCropIfOutside(boolean crop)
withCropIfOutside.
crop - a boolean.VisuallyCompare object.public VisuallyCompare withDifferences(Collection<Difference> differences)
withDifferences.
differences - a Collection object.VisuallyCompare object.public VisuallyCompare withElementName(String name)
withElementName.
name - a String object.VisuallyCompare object.public VisuallyCompare withSectionName(String name)
withSectionName.
name - a String object.VisuallyCompare object.public VisuallyCompare withZeroToleranceWarning(boolean warning)
withZeroToleranceWarning.
warning - a boolean.VisuallyCompare object.protected MutableDifferences getDifferences()
protected GalenSpecRun map(Selector item)
map in class TypeSafeWrappingMatcher<Selector,GalenSpecRun>public static VisuallyCompare visuallyCompare()
visuallyCompare.
Copyright © 2017–2022 wcm.io QA. All rights reserved.