46 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
b9b1a35408 Replaced Map.Entry with StandardImageMetadataSupport.TextEntry 2022-10-10 14:15:57 +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
92bc9c73f6 IFF: Simplified aspect. 2022-02-08 08:43:21 +01:00
Harald Kuhr
2a77558cac IFF: XS24 clean-up (again...) 2022-02-04 12:33:28 +01:00
Harald Kuhr
816cad60a8 IFF: XS24 clean-up 2022-02-04 12:23:44 +01:00
Harald Kuhr
7167f81c69 IFF: Thumbnail support for XS24 chunk (now without stderr output) 2022-02-04 12:13:53 +01:00
Harald Kuhr
f5cfa0e619 IFF: Thumbnail support for XS24 chunk. 2022-02-04 11:46:32 +01:00
Harald Kuhr
73ad024833 IFF: Read support for TVPaint DEEP and TVPP
+ Bonus: Massive code clean-up/refactor.
2022-02-03 17:26:41 +01:00
Harald Kuhr
379449b621 IFF: More clean-up 2022-01-29 14:41:49 +01:00
Harald Kuhr
e17faad6fb IFF: Read support for Impulse (Imagine, Turbo Silver) RGB8 format. 2022-01-28 16:36:34 +01:00
Harald Kuhr
1271a3d55e IFF clean-up. 2022-01-28 16:07:15 +01:00
Harald Kuhr
ebaa69713f Deprecate for BufferedImageInputStream, now using buffered streams directly in all readers. 2021-01-11 22:07:31 +01:00
Harald Kuhr
b563f573de Better input validation. 2020-11-21 20:49:21 +01:00
Harald Kuhr
64fb421b38 IFF format clean-up + standard metadata support 2020-11-21 15:23:18 +01:00
Harald Kuhr
6c34fb211f ImageWriterAbstractTest refactorings. 2020-10-14 18:54:46 +02: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
ab13084f44 #292 Preparing for Java 9 compatibility + general clean-up 2016-11-15 21:40:59 +01:00
Harald Kuhr
e9388e55ec #260 ProviderInfo fix 2016-06-02 11:24:57 +02:00
Harald Kuhr
e603ae260d TMI-64: Test case clean-up 2015-04-10 11:06:50 +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
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
38fa2189bc TMI-IIO: Removed some deprecation warnings. 2013-11-05 20:24:12 +01:00
Harald Kuhr
f5a4fe03f4 TMI-15: Fixed some issues introduced in later JREs (at least 7u45). 2013-11-05 09:43:46 +01:00
Harald Kuhr
51f0b20bb0 TMI-IFF: Updated documentation/description. 2013-10-31 13:48:47 +01:00
Harald Kuhr
86921ad389 ImageReader subsampling test 2013-10-24 21:19:52 +02:00
Harald Kuhr
f940fed152 Added test case for 1-bit/monochrome. 2012-04-04 16:02:17 +02:00
Harald Kuhr
da9b94bdf3 Added test case for 64 color EHB (finally).
Rewrote EHB handling in CMAPChunk to fix bug.
Added test cases for 16 color indexed and 32 color indexed.
Removed obsolete test cases.
2012-04-03 16:58:04 +02:00
Harald Kuhr
bf4ad6265a Implemented huffman decompression and "big line" changes for PCHG chunk. 2012-04-03 16:55:46 +02:00
Harald Kuhr
13a4646ae4 Fixed a bug in the IFFImageWriter, caused by buffered data not being written to the stream. Adapter streams are now properly flushed/closed.
Test clean-up.
2012-04-02 14:25:28 +02:00
Harald Kuhr
36a05272a5 Added reader test case for IFF FORM type PBM.
Minor optimization in reading PBM data.
Clean-up.
2012-04-02 14:23:37 +02:00
Harald Kuhr
a99c337348 Known issue IFFImageWriter. 2012-03-30 17:09:47 +02:00
Harald Kuhr
0307237852 Better writer tests.
Fixed a bug in PICTWriter.
Minor changes in ImageReader/WriterBase classes.
2012-03-30 16:58:09 +02:00
Harald Kuhr
7431065519 Fixed duped test data. 2012-03-30 16:53:26 +02:00
Harald Kuhr
de34ac7ede Now with source region/subsampling support also for multipalette. 2012-03-30 16:53:04 +02:00
Harald Kuhr
4463a00667 Added multi-palette support to IFFImageReader + minor clean-up. 2012-03-30 16:36:32 +02:00
Harald Kuhr
c19338b5b9 Test cases for writers + renamed reader test cases to follow naming convention. 2012-01-20 13:52:34 +01:00
Harald Kuhr
73fc08f8c1 Fixed image progress to work as specified. 2011-12-12 10:44:53 +01:00
Harald Kuhr
770f948e1a New code style. No functional changes. 2011-02-17 17:54:50 +01:00
Harald Kuhr
20b87d155d Mainly new code standard.
A few changes that should have been committed earlier.. :-/
2011-02-17 12:40:49 +01:00
Erlend Hamnaberg
38d6c58eba Merge branch 'master' into 3.0-structure
Conflicts:
	imageio/imageio-psd/pom.xml
	twelvemonkeys-imageio/pom.xml
	twelvemonkeys-servlet/pom.xml
2010-01-29 19:27:10 +01:00
Erlend Hamnaberg
0786949c1c It all works 2009-11-08 19:52:30 +01:00