24 Commits

Author SHA1 Message Date
Vyshak Puthusseri
543acce8a3
Upgrade to Junit5 (#1050)
* chore: Update to junit5 for servlet package

* chore: Update to junit5 for contrib package

* chore: Update to junit5 for common-image package

* chore: Update to junit5 for common-lang package

* chore: Update to junit5 for entire project files

* fix: test case for JPEGImageReaderTest failed for java 8 and 11

assertEquals was using old signature of junit4.

* Update common/common-io/src/test/java/com/twelvemonkeys/io/InputStreamAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update common/common-io/src/test/java/com/twelvemonkeys/io/InputStreamAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-bmp/src/test/java/com/twelvemonkeys/imageio/plugins/bmp/BMPImageReaderTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-jpeg/src/test/java/com/twelvemonkeys/imageio/plugins/jpeg/JPEGImageReaderTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-tiff/src/test/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageMetadataTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-tiff/src/test/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageReaderTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-tiff/src/test/java/com/twelvemonkeys/imageio/plugins/tiff/TIFFImageWriterTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/stream/BufferedChannelImageInputStreamTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/stream/BufferedChannelImageInputStreamTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* refactor: few indentation changes and missed test case

- review change related to missing test annotation
- unwanted new lines inside test case
- duplicate assertions

* refactor: moved the lambda expression to method reference

* review: testNotNullWithParameterNull catch block was never executed.

Added the suggested change

* Apply suggestions from code review

chore: adjust suggested indentation

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/util/ImageReaderAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/util/ImageReaderAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* Update imageio/imageio-core/src/test/java/com/twelvemonkeys/imageio/util/ImageWriterAbstractTest.java

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>

* refactor: using assertTimeout doesnot kill the execution, even if the timeout happens.

It is better to use assertTimeoutPreemptively in cases, where we really want to kill the execution after timeout.
https://stackoverflow.com/questions/57116801/how-to-fail-a-test-after-a-timeout-is-exceeded-in-junit-5/57116959#57116959

---------

Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>
2024-11-12 10:13:15 +01:00
Harald Kuhr
8992406f50 Documentation & details. 2022-05-18 20:31:28 +02:00
Harald Kuhr
d46a76fca8 Fix typo in TIFFImageMetadataFormat. 2021-08-31 22:26:32 +02:00
Harald Kuhr
80c595cea8 No longer reads thumbnails, as part of the readWithOrientation method. 2021-02-26 17:13:16 +01:00
Harald Kuhr
4e69efce28 Now correctly uses Image*Input*Stream instead of ImageOutputStream... 2020-11-13 15:52:17 +01:00
Harald Kuhr
5cc201b46d JPEG Exif rotation in metadata + support 2020-07-10 22:05:46 +02:00
Koen De Groote
aff31ebd1b Intellij suggested changes from static code analysis. 2020-01-28 16:18:07 +01:00
Oliver Schmidtmer
632e5e6664 TIFFUtilities: Enhanced support for old-style to new-style JPEG transformation 2018-08-21 15:04:21 +02:00
Harald Kuhr
24c6682236 #311 Updated license headers to be the same as in the LICENSE.txt 2018-08-18 19:22:52 +02:00
Oliver Schmidtmer
18800b6ee4 Merging TIFF pages failed, if a page contained a sub IFD without a TIFF.TAG_COMPRESSION entry 2018-07-09 16:42:34 +02:00
Oliver Schmidtmer
105ddd8ad5 TIFFUtilities code cleanups & firing IOExceptions instead of validation errors 2017-06-14 14:37:33 +02:00
Oliver Schmidtmer
b30d454bf0 Support merging and splitting of tiled TIFF pages 2017-06-13 16:55:55 +02:00
Oliver Schmidtmer
3e43841e85 Transform old-style JPEG to new-style 2017-06-13 16:37:14 +02:00
Oliver Schmidtmer
1c642fbb7d Transform old-style JPEG to new-style
merge JPEGTables & switching compression tag done
handling JPEGInterchangeFormat tbd
2016-12-19 23:37:08 +01:00
Oliver Schmidtmer
65cab331d1 Fix for writing TIFF pages with bogus or empty TAG_JPEG_INTERCHANGE_FORMAT_LENGTH 2016-12-15 17:44:58 +01:00
Harald Kuhr
a86b76256b #204 TIFF metadata refactor 2016-12-12 22:28:22 +01:00
Oliver Schmidtmer
2c4c6d5a48 Extended AffineTransformOp for a Graphics2D fallback on filter-method 2016-06-15 23:14:08 +02:00
Oliver Schmidtmer
099dbb0073 TIFFPage.write did not expect subIFDs which do not contain image data 2016-05-03 14:18:01 +02:00
Oliver Schmidtmer
ac49e206a1 Make IFD ReadOnly again 2016-02-23 23:07:31 +01:00
Oliver Schmidtmer
8387a9ad37 Support OLD_JPEG and SubIFDs in TIFFUtilities 2016-02-19 23:21:54 +01:00
Schmidor
c6e8711639 Remove runtime dependency to TIFF plugin from contrib module
Also removed public flag from plugin classes again. Replaced by temporary clones.
2016-01-13 23:00:31 +01:00
Schmidor
342dbe7d83 TIFFUtilities.applyOrientation: Switch to AffineTrandformOp for executing the transformation. 2016-01-13 00:17:32 +01:00
Schmidor
8c2af2c3c5 Finish TIFFUtilities.applyOrientation 2015-12-16 23:18:09 +01:00
Schmidor
ad0d265f4f Init TIFFUtilities for mereging, splitting and rotating tiff pages 2015-12-02 01:48:38 +01:00