This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-imaging.git
commit aae6142b2a66c6cb41f7f3caafbecd5782249fb8 Author: Gary Gregory <garydgreg...@gmail.com> AuthorDate: Sat Mar 9 13:41:25 2024 -0500 Sort members --- .../commons/imaging/formats/tiff/TiffReadTest.java | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadTest.java b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadTest.java index 77a47673..17705d16 100644 --- a/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadTest.java +++ b/src/test/java/org/apache/commons/imaging/formats/tiff/TiffReadTest.java @@ -54,6 +54,20 @@ public class TiffReadTest extends TiffBaseTest { } } + @Test + public void testReadAllImages() throws Exception { + // same as above, but test read all Images + for (final File imageFile : getTiffImages()) { + // the "bad offsets" file will cause an exception to be thrown. + // It's not relevant to what this test is trying to discover. + // So skip it. + if (imageFile.getName().toLowerCase().contains("bad")) { + continue; + } + assertFalse(Imaging.getAllBufferedImages(imageFile).isEmpty()); + } + } + @Test public void testReadDirectories() throws Exception { // same as above, but test reading the TIFF directories @@ -72,18 +86,4 @@ public class TiffReadTest extends TiffBaseTest { assertNotNull(contents); } } - - @Test - public void testReadAllImages() throws Exception { - // same as above, but test read all Images - for (final File imageFile : getTiffImages()) { - // the "bad offsets" file will cause an exception to be thrown. - // It's not relevant to what this test is trying to discover. - // So skip it. - if (imageFile.getName().toLowerCase().contains("bad")) { - continue; - } - assertFalse(Imaging.getAllBufferedImages(imageFile).isEmpty()); - } - } }