-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleantrueif the reader or writer takes in account the parameter value given toIIOParam.setSourceBands(int[]).protected booleantrueif the reader or writer takes in account the parameter value given toIIOParam.setSourceRegion(Rectangle).protected booleantrueif the reader or writer takes in account the two last parameter values given toIIOParam.setSourceSubsampling(int, int, int, int).protected booleantrueif the reader or writer takes in account the two first parameter values given toIIOParam.setSourceSubsampling(int, int, int, int).protected doubleThe tolerance threshold to use when comparing floating point numbers.Fields inherited from class org.opengis.test.TestCase
configurationTip, units, validators -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCreates a new test case using a default random number generator.protectedImageIOTestCase(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
trueif the reader or writer takes in account the parameter value given toIIOParam.setSourceRegion(Rectangle). The default value istrue. Subclasses can set this flag tofalsewhen testing an incomplete implementation. -
isSubsamplingSupported
trueif 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 tofalsewhen testing an incomplete implementation. -
isSubsamplingOffsetSupported
trueif 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 tofalsewhen testing an incomplete implementation. -
isSourceBandsSupported
trueif the reader or writer takes in account the parameter value given toIIOParam.setSourceBands(int[]). The default value istrue. Subclasses can set this flag tofalseif 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
floatanddouble; 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.
-