38 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
cbe78dc67f ...and removed System.out.. Ouch... 2022-10-18 16:08:03 +02:00
Harald Kuhr
c9e11f171f Fixed typo... 2022-10-18 16:05:54 +02:00
Harald Kuhr
7ed5663633 More tests of StandardImageMetadataSupport + minor API changes 2022-10-08 14:28:10 +02:00
Harald Kuhr
6458fcdcbd Major ImageMetadata refactor for more consistent standard metadata support.
Fixes a few related bugs as a bonus.
2022-10-08 13:43:26 +02:00
Harald Kuhr
d87b80deea PCX: Minor clean up 2022-05-06 19:27:44 +02:00
Harald Kuhr
b400b6b157 #660: Make sure region is within bounds of new test image... 2022-02-08 10:38:53 +01:00
Harald Kuhr
499b3ef120 #660: Farewell, Lena 2022-02-08 10:16:42 +01:00
Harald Kuhr
812e12acb0 #623: TGAImageReader, PCXImageReader and SGIImageReader now return more standard image types as default, for better AffineTransformOp compatibility. Added tests.
Bonus: Subsampling fix for TGAImageReader and BMPImageReader.
2021-09-07 09:29:13 +02:00
Harald Kuhr
6d192968d1 Fix SGI source subsampling + test optimizations. 2021-02-26 17:13:16 +01:00
Harald Kuhr
9fdbc3b1fc ImageReaderAbstractTest refactorings. 2020-10-14 17:06:35 +02:00
Harald Kuhr
9e23413456 Fixed JavaDoc errors to enable Java 8 build. 2019-08-10 00:41:36 +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
Harald Kuhr
2a40bdb14b Fixed DCX off-by one issue + minor optimization. 2018-01-09 20:33:35 +01:00
Harald Kuhr
6113ae1c9c Code clean-up. 2018-01-09 20:30:06 +01:00
Harald Kuhr
d02d45f95a #400 Added test case for the V3 with no palette case. 2018-01-09 20:01:30 +01:00
Harald Kuhr
39277697a6 #400 Fixed minor issues in metadata. Added Document node with version. 2018-01-09 19:50:19 +01:00
Harald Kuhr
27a6ae6ffc #400 Better handling of colors, now uses fallback B/W for most bi-level images.
Gray image now uses palette if present.
PaletteInfo header flag is ignored and no longer outputs warning.
2018-01-09 19:49:38 +01:00
Harald Kuhr
cdb2d72f8b #400 Fixed AIOOBE reading index color w/bitplanes for uneven widths. 2018-01-03 18:05:19 +01:00
Harald Kuhr
e9388e55ec #260 ProviderInfo fix 2016-06-02 11:24:57 +02:00
Harald Kuhr
3d68b61f72 #258 SPI typos 2016-06-01 10:12:29 +02:00
Harald Kuhr
f4cc310096 TMI-139: Work in progress: TIFF image metadata. 2015-06-22 11:11:37 +02:00
Harald Kuhr
e603ae260d TMI-64: Test case clean-up 2015-04-10 11:06:50 +02:00
Harald Kuhr
23ed1e0279 Fix typo. 2015-04-09 12:41:16 +02:00
Harald Kuhr
072e655b03 Fixed bug in progress reporting. 2015-04-09 11:47:25 +02:00
Harald Kuhr
2a5736bea1 Fixed bug in progress reporting. 2015-04-09 11:44:53 +02:00
Harald Kuhr
2c90bcc49c Added license to ProviderInfo classes + minor code clean up. 2015-04-07 11:23:14 +02:00
Harald Kuhr
b40d4dad17 New SPI info. 2015-03-20 15:35:26 +01:00
Harald Kuhr
7354b1f8c7 Fixed possible NPEs in Metadata. 2015-02-12 16:17:02 +01:00
Harald Kuhr
9539e8e2e5 Faster test. 2014-11-20 16:10:31 +01:00
Harald Kuhr
a70105d23f TMI-81: Clean-up after refactorings. 2014-11-20 16:04:27 +01:00
Harald Kuhr
654f7e7a70 TMI-81: Support for 32 bit unsigned int color model.
Bonus: Cleaned up creation of ImageTypeSpecifiers and added tests.
2014-11-20 15:57:36 +01:00
Harald Kuhr
4b00945c9d TMI-80: PCXImageReader now correctly skips rows and applies source region. Re-enabled test in DCXImageReader that earlier failed. 2014-11-04 16:21:42 +01:00
Harald Kuhr
36204f378d TMI-75: Fix offset bug in DCXImageReader (now with passing test) 2014-11-03 21:31:57 +01:00
Harald Kuhr
bc448b10e4 TMI-75: Fix offset bug in DCXImageReader 2014-11-03 21:04:44 +01:00
Harald Kuhr
6df540808b TMI-76: Support 34/32 bit in PCXImageReader 2014-11-03 21:03:26 +01:00
Harald Kuhr
2753d2d6b4 TMI-PCX: Added license headers. 2014-10-02 16:10:06 +02:00
Harald Kuhr
5313ffd6fc TMI-PCX: Initial commit. 2014-10-01 14:34:51 +02:00