Changeset 5965


Ignore:
Timestamp:
02/26/10 08:01:24 (10 years ago)
Author:
callan
Message:

Made Nikon codec decompression test a little more thorough.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cleanup/components/bio-formats/test/loci/formats/utests/tiff/TiffCompressionDecompressTest.java

    r5962 r5965  
    3232import loci.formats.FormatException; 
    3333import loci.formats.codec.CodecOptions; 
     34import loci.formats.codec.NikonCodecOptions; 
    3435import loci.formats.tiff.TiffCompression; 
    3536 
     
    5051 
    5152  static { 
     53    OPTIONS.width = 8; 
     54    OPTIONS.height = 8; 
     55    OPTIONS.bitsPerSample = 8; 
    5256    OPTIONS.interleaved = true; 
    5357    OPTIONS.littleEndian = true; 
     
    158162  } 
    159163 
    160   @Test(expectedExceptions={ FormatException.class }) 
     164  @Test 
    161165  public void testNIKON() throws FormatException, IOException { 
    162166    TiffCompression compression = TiffCompression.NIKON; 
    163     assertNotNull(compression.decompress(DATA, OPTIONS)); 
     167    NikonCodecOptions options = new NikonCodecOptions(); 
     168    options.interleaved = OPTIONS.interleaved; 
     169    options.littleEndian = OPTIONS.littleEndian; 
     170    options.maxBytes = OPTIONS.maxBytes; 
     171    options.curve = new int[] { 1 }; 
     172    options.vPredictor = new int[] { 1 }; 
     173    options.lossy = false; 
     174    options.split = 1; 
     175    assertNotNull(compression.decompress(DATA, options)); 
    164176  } 
    165177 
Note: See TracChangeset for help on using the changeset viewer.