We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taken from AttributesDifferenceFinder:
AttributesDifferenceFinder
private AttributeDifference differenceFor( final IdentifyingAttributes identAttributes, final Serializable expected, final Serializable actual, final String key ) { if ( expected == null ) { return null; } if ( RecheckIgnore.getInstance().shouldIgnoreAttribute( identAttributes, key ) ) { return null; } // FIXME If default is persisted, then this is true and the default isn't removed. if ( Objects.equals( expected, actual ) ) { return null; } // FIXME If default is persisted, then this should yield a AttributeDifference that removes it. if ( defaultValueFinder.isDefaultValue( identAttributes, key, actual ) ) { return null; } if ( key.equals( Attributes.SCREENSHOT ) ) { final Screenshot expectedScreenshot = (Screenshot) expected; final Screenshot actualScreenshot = (Screenshot) actual; final ImageDifference imgDiff = imgDiffCalc.compare( expectedScreenshot, actualScreenshot ); if ( imgDiff.isEqual() ) { return null; } else { return new ScreenshotAttributeDifference( expectedScreenshot, actualScreenshot, imgDiff.getStrategyName(), imgDiff.getMatch() ); } } return new AttributeDifference( key, expected, actual ); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Taken from
AttributesDifferenceFinder
:The text was updated successfully, but these errors were encountered: