Package org.mapfish.print.test.util

Examples of org.mapfish.print.test.util.ImageSimilarity


                "-config", this.configFile.getAbsolutePath(),
                "-spec", this.v3ApiRequestFile.getAbsolutePath(),
                "-output", this.outputFile.getAbsolutePath()};
        Main.main(args);

        new ImageSimilarity(getFile("expectedV3Image.png"), 1).assertSimilarity(this.outputFile, 70);
    }
View Full Code Here


                "-config", this.configFile.getAbsolutePath(),
                "-spec", this.v2ApiRequestFile.getAbsolutePath(),
                "-output", this.outputFile.getAbsolutePath()};
        Main.main(args);

        new ImageSimilarity(getFile("expectedV2Image.png"), 1).assertSimilarity(this.outputFile, 70);
    }
View Full Code Here

                getFile(JasperReportOutputFormatSimpleMapTest.class, BASE_DIR), getTaskDirectory()).print;
        BufferedImage reportImage = ImageSimilarity.exportReportToImage(print, 0);

        // note that we are using a sample size of 50, because the image is quite big.
        // otherwise small differences are not detected!
        new ImageSimilarity(reportImage, 50).assertSimilarity(getFile(BASE_DIR + "expectedReport.png"), 10);
    }
View Full Code Here

TOP

Related Classes of org.mapfish.print.test.util.ImageSimilarity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.