org.geotools.image.test
Class ImageAssert

Object
  extended by ImageAssert

public class ImageAssert
extends Object

Compares two images using perceptual criterias: the assertions will fail if the images would look different to a human being. If the tests are run with the org.geotools.image.test.interactive set to true a interactive image comparator will be shown.

Author:
Andrea Aime - GeoSolutions

Constructor Summary
ImageAssert()
           
 
Method Summary
static void assertEquals(File expectedFile, RenderedImage actualImage, int threshold)
          Checks the image in the reference file and the actual image are equals from a human perception p.o.v
static void assertEquals(RenderedImage expectedImage, RenderedImage actualImage, int threshold)
          Checks the expected image and the actual image are equals from a human perception p.o.v
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageAssert

public ImageAssert()
Method Detail

assertEquals

public static void assertEquals(File expectedFile,
                                RenderedImage actualImage,
                                int threshold)
Checks the image in the reference file and the actual image are equals from a human perception p.o.v

Parameters:
expectedFile -
actualImage -
threshold -

assertEquals

public static void assertEquals(RenderedImage expectedImage,
                                RenderedImage actualImage,
                                int threshold)
Checks the expected image and the actual image are equals from a human perception p.o.v

Parameters:
expectedFile -
actualImage -
threshold -


Copyright © 1996-2014 Geotools. All Rights Reserved.