use of ru.yandex.qatools.ashot.comparison.ImageMarkupPolicy in project ashot by yandex-qatools.
the class DifferTest method testSetDiffColor.
@Test
public void testSetDiffColor() throws Exception {
ImageDiffer greenDiffer = new ImageDiffer().withDiffMarkupPolicy(new ImageMarkupPolicy().withDiffColor(Color.GREEN));
ImageDiff diff = greenDiffer.makeDiff(IMAGE_A_SMALL, IMAGE_B_SMALL);
assertThat(diff.getMarkedImage(), ImageTool.equalImage(loadImage("img/expected/green_diff.png")));
}
Aggregations