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());
}
Aggregations