-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
true
if the reader or writer takes in account the parameter value given toIIOParam.setSourceBands(int[])
.protected boolean
true
if the reader or writer takes in account the parameter value given toIIOParam.setSourceRegion(Rectangle)
.protected boolean
true
if the reader or writer takes in account the two last parameter values given toIIOParam.setSourceSubsampling(int, int, int, int)
.protected boolean
true
if the reader or writer takes in account the two first parameter values given toIIOParam.setSourceSubsampling(int, int, int, int)
.protected double
The tolerance threshold to use when comparing floating point numbers.Fields inherited from class org.opengis.test.TestCase
configurationTip, units, validators
-
Constructor Summary
ModifierConstructorDescriptionprotected
Creates a new test case using a default random number generator.protected
ImageIOTestCase
(long seed) Creates a new test case using a random number generator initialized to the given seed. -
Method Summary
Methods inherited from class org.opengis.test.TestCase
configuration, getEnabledFlags
-
Field Details
-
isSubregionSupported
true
if the reader or writer takes in account the parameter value given toIIOParam.setSourceRegion(Rectangle)
. The default value istrue
. Subclasses can set this flag tofalse
when testing an incomplete implementation. -
isSubsamplingSupported
true
if the reader or writer takes in account the two first parameter values given toIIOParam.setSourceSubsampling(int, int, int, int)
. The default value istrue
. Subclasses can set this flag tofalse
when testing an incomplete implementation. -
isSubsamplingOffsetSupported
true
if the reader or writer takes in account the two last parameter values given toIIOParam.setSourceSubsampling(int, int, int, int)
. The default value istrue
. Subclasses can set this flag tofalse
when testing an incomplete implementation. -
isSourceBandsSupported
true
if the reader or writer takes in account the parameter value given toIIOParam.setSourceBands(int[])
. The default value istrue
. Subclasses can set this flag tofalse
if this feature cannot be tested for the current implementation.Note that this feature cannot be tested with some standard readers like PNG, because those readers require an explicit destination image to be specified if the number of bands to read differs from the number of bands in the source image.
-
sampleToleranceThreshold
The tolerance threshold to use when comparing floating point numbers. The default value is 0. Subclasses can relax this tolerance threshold if needed.This threshold applies only to values of type
float
anddouble
; it doesn't apply to integer types.
-
-
Constructor Details
-
ImageIOTestCase
protected ImageIOTestCase()Creates a new test case using a default random number generator. The sub-regions, sub-samplings and source bands will be different for every test execution. If reproducible subsetting sequences are needed, use theImageIOTestCase(long)
constructor instead. -
ImageIOTestCase
Creates a new test case using a random number generator initialized to the given seed.- Parameters:
seed
- the initial seed for the random numbers generator. Use a constant value if the tests need to be reproduced with the same sequence of image parameters.
-