* 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>
* make tests pass on JDK 16 and 17
replace deprecated mockito-all by mockito-core, and updated to latest 3.x
replace deprecated org.mockito.Matchers
* code cleanup from IDE suggestions
* add oracle jdk 16 and 17 to Travis
* Added the `@Deprecated` tag to instances where is was mentioned in documentation, but not for the actual code itself.
Changed one documentation link pointing at a non-existing item.
* As per PR suggestion.
- Removed imageio-jmagick (again)
- Removed internal Maven repo
- fixed line endings on a number of files to avoid a humongous merge
diff when getting changes into upstream
- Re-enabled a few tests
- Extracted AreaOfInterest into an interface
- Added an AreaOfInterestFactory.
- Use AreaOfInterestFactory in ImageServletResponseImpl
- fixed version
Conflicts:
servlet/pom.xml
servlet/src/test/java/com/twelvemonkeys/servlet/image/ImageServletResponseImplTestCase.java
- enable with system property
- extracted AreaOfInterest into a separate class.
Conflicts:
servlet/src/main/java/com/twelvemonkeys/servlet/image/ImageServletResponseImpl.java
servlet/src/test/java/com/twelvemonkeys/servlet/image/ImageServletResponseImplTestCase.java
- Removed JMock dependency, tests rewritten to use Mockito for stub/mock
- All test should now be using JUnit annotation-style tests
- All modules should now depend on same JUnit version
- Rewrote a few tests to better utilize JUnit annotations
- Fixed a few broken tests
- Code style changes