Commit Graph

18 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
c531d4f5d3 Reverted test, glossed over flakyness in library instead. 2023-04-04 16:30:45 +02:00
Harald Kuhr
aa2e8e5d7e Fix flaky old test. 2023-04-04 16:06:42 +02:00
Harald Kuhr
511a29beb9 Minor AffineTransformOp clean-up + removed test output. 2021-10-29 11:05:24 +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
288ad54c42 #261 Code clean up. 2016-09-28 12:13:35 +02:00
Oliver Schmidtmer
2c4c6d5a48 Extended AffineTransformOp for a Graphics2D fallback on filter-method 2016-06-15 23:14:08 +02:00
Harald Kuhr
77bbc066e3 #249 Remove unnecessary part of test that breaks on 8u60+ 2016-05-25 18:40:29 +02:00
Harald Kuhr
d5a35fa818 #195: Faster (and correct) test 2016-01-04 09:11:54 +01:00
Harald Kuhr
04a4c6e3ae #195: Fixed AIOOBE related to specific widths 2015-12-16 10:18:26 +01:00
Harald Kuhr
6db06414af #195 ArrayIndexOutOfBoundsException for ResampleOp in certain cases 2015-11-27 13:20:44 +01:00
Harald Kuhr
f914d15677 Rewrote test to use JUnit 4. 2014-09-29 11:24:12 +02:00
Harald Kuhr
64668807e0 Code clean-up after merge + Rewrote test to use JUnit 4. 2014-03-20 18:01:20 +01:00
Andreas Kohn
552ab24658 Fix conditions in #showEm()
* return when the pOriginal is null, not when it is non-null
  (Eclipse noticed a definitive NPE)
* return when running in headless mode (unit tests via maven)
2014-03-17 12:11:49 +01:00
Harald Kuhr
926359d9d2 New test cases.
Better exception handling of IMAGEERROR.
2012-03-21 10:13:03 +01:00
Harald Kuhr
e712df3862 More test cases. 2012-03-20 17:49:44 +01:00
Harald Kuhr
43cc440e67 New code style. No functional changes. 2011-02-17 12:36:40 +01:00
Erlend Hamnaberg
7167a7a4ad Core now moved to common. 2009-11-08 19:01:36 +01:00