[OpenJDK 2D-Dev] RFR: 8145776: [TEST] add a test checking multipage tiff creation
Brian Burkhalter
brian.burkhalter at oracle.com
Mon Dec 28 23:12:41 UTC 2015
Hello Alexander,
A few comments.
1) Lines 53,59: By convention it is better to put constants in upper case, e.g., NUM_IMAGES and BLACK_SIZE.
2) Line 45, 102: The test references the internal package com.sun.imageio.plugins.tiff. In general it is better to use the public packages.
3) Line 69: If the test fails, it would be good to know the random seed. It would also be good to be able to set the seed when running the test. The approach taken in core libraries may be seen in test/java/math/BigInteger/BigIntegerTest.java. The jdk.testlibrary.RandomFactory class is used to create the Random instance and to obtain any seed provided via Java properties. This requires the test tags “@library /lib/testlibrary” and “@build jdk.testlibrary.*” and it is also good to add “@key randomness.”
Regards,
Brian
On Dec 25, 2015, at 5:10 AM, Alexander Stepanov <alexander.v.stepanov at oracle.com> wrote:
> Could you please review the following fix
> http://cr.openjdk.java.net/~yan/8145776/webrev.00/
> for
> https://bugs.openjdk.java.net/browse/JDK-8145776
>
> Just a single test added checking the correctness of multi-page TIFF image creation.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20151228/5e69023a/attachment.html>
More information about the 2d-dev
mailing list