private boolean areInputsIdentical(ArtifactsDAO artifactsDAO, ComparatorProperties properties) { String collectedMD5 = artifactsDAO.getArtifactMD5(properties, properties.getCollectedId()); String patternMD5 = artifactsDAO.getArtifactMD5(properties, properties.getPatternId()); return StringUtils.equalsIgnoreCase(collectedMD5, patternMD5); }
private boolean areInputsIdentical(ArtifactsDAO artifactsDAO, ComparatorProperties properties) { String collectedMD5 = artifactsDAO.getArtifactMD5(properties, properties.getCollectedId()); String patternMD5 = artifactsDAO.getArtifactMD5(properties, properties.getPatternId()); return StringUtils.equalsIgnoreCase(collectedMD5, patternMD5); }
private boolean isPatternAndResultMD5Identical(byte[] screenshot) { if (properties.getPatternId() != null) { final String screenshotMD5 = DigestUtils.md5Hex(screenshot); final String patternMD5 = artifactsDAO .getArtifactMD5(properties, properties.getPatternId()); return StringUtils.equalsIgnoreCase(patternMD5, screenshotMD5); } else { return false; } }
private boolean isPatternAndResultMD5Identical(byte[] screenshot) { if (properties.getPatternId() != null) { final String screenshotMD5 = DigestUtils.md5Hex(screenshot); final String patternMD5 = artifactsDAO .getArtifactMD5(properties, properties.getPatternId()); return StringUtils.equalsIgnoreCase(patternMD5, screenshotMD5); } else { return false; } }