Task #6970 (closed)
Unit tests for RandomAccessInputStream
Reported by: | crueden-x | Owned by: | mlinkert |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-4.4 |
Component: | Bio-Formats | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-11-29 (3) |
Description
The RandomAccessInputStream? stack has become quite complex, and we should write some unit tests for it. It would be a valuable safety net to ensure the various IRandomAccess handle types keep working correctly. It should be doable to have tests that build up streams of bytes in RAM (maybe even using ImageWriter?), then pass the bytes back to the RAIS to verify behavior.
Among the tests we need:
- id mapped to file path using Location.mapId
- id mapped to byte array using Location.mapFile(ByteArrayHandle?)
- URL id beginning with "http:"
- zip/gzip/bzip2 id ending with the relevant extension
Change History (5)
comment:1 Changed 13 years ago by crueden-x
- Owner changed from linkert-x to mlinkert-x
comment:2 Changed 13 years ago by mlinkert
- Sprint set to 2011-11-10 (2)
comment:3 Changed 13 years ago by jburel
- Sprint changed from 2011-11-10 (2) to 2011-11-29 (3)
comment:4 Changed 12 years ago by Melissa Linkert <melissa@…>
- Remaining Time set to 0
- Resolution set to fixed
- Status changed from new to closed
(In [fa8c62cd0c4a9d18c4f71b58405ab1ac7af5509b/bioformats.git]) Add tests for loci.common.RandomAccessInputStream?
Closes #6970.
comment:5 Changed 12 years ago by Melissa Linkert <melissa@…>
(In [fa8c62cd0c4a9d18c4f71b58405ab1ac7af5509b/bioformats.git]) Add tests for loci.common.RandomAccessInputStream?
Closes #6970.
Moved from sprint 2011-11-10 (2)