Search in sources :

Example 1 with FixedCutStrategy

use of ru.yandex.qatools.ashot.shooting.cutter.FixedCutStrategy in project ashot by yandex-qatools.

the class RotatingDecoratorTest method testRotating.

@Test
public void testRotating() throws Exception {
    RotatingDecorator strategy = new RotatingDecorator(new FixedCutStrategy(0, 0), new MockShootingStrategy());
    BufferedImage screenshot = strategy.getScreenshot(wd);
    ImageDiff diff = new ImageDiffer().makeDiff(loadImage("img/expected/rotated.png"), screenshot);
    assertFalse(diff.hasDiff());
}
Also used : ImageDiff(ru.yandex.qatools.ashot.comparison.ImageDiff) FixedCutStrategy(ru.yandex.qatools.ashot.shooting.cutter.FixedCutStrategy) ImageDiffer(ru.yandex.qatools.ashot.comparison.ImageDiffer) BufferedImage(java.awt.image.BufferedImage) Test(org.junit.Test)

Aggregations

BufferedImage (java.awt.image.BufferedImage)1 Test (org.junit.Test)1 ImageDiff (ru.yandex.qatools.ashot.comparison.ImageDiff)1 ImageDiffer (ru.yandex.qatools.ashot.comparison.ImageDiffer)1 FixedCutStrategy (ru.yandex.qatools.ashot.shooting.cutter.FixedCutStrategy)1