Search in sources :

Example 1 with ImageMarkupPolicy

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")));
}
Also used : ImageMarkupPolicy(ru.yandex.qatools.ashot.comparison.ImageMarkupPolicy) ImageDiff(ru.yandex.qatools.ashot.comparison.ImageDiff) ImageDiffer(ru.yandex.qatools.ashot.comparison.ImageDiffer) Test(org.junit.Test)

Aggregations

Test (org.junit.Test)1 ImageDiff (ru.yandex.qatools.ashot.comparison.ImageDiff)1 ImageDiffer (ru.yandex.qatools.ashot.comparison.ImageDiffer)1 ImageMarkupPolicy (ru.yandex.qatools.ashot.comparison.ImageMarkupPolicy)1