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 f630d0bb5334036d488915c871080fd205b1898e
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Nov 3 10:23:41 2023 -0400

    Sort test members
---
 .../imaging/formats/jpeg/iptc/IptcFullDiscardTest.java       | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcFullDiscardTest.java
 
b/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcFullDiscardTest.java
index 185a8164..36cb24f6 100644
--- 
a/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcFullDiscardTest.java
+++ 
b/src/test/java/org/apache/commons/imaging/formats/jpeg/iptc/IptcFullDiscardTest.java
@@ -47,6 +47,12 @@ public class IptcFullDiscardTest {
         return byteArrayOutputStream.toByteArray();
     }
 
+    private byte[] removeMetaData(final byte[] bytes, final boolean 
removeApp13Segment) throws Exception {
+        final ByteArrayOutputStream byteArrayOutputStream = new 
ByteArrayOutputStream();
+        new JpegIptcRewriter().removeIptc(bytes, byteArrayOutputStream, 
removeApp13Segment);
+        return byteArrayOutputStream.toByteArray();
+    }
+
     @Test
     public void testLeaveApp13Segment() throws Exception {
         final byte[] originalImage = generateImage();
@@ -62,10 +68,4 @@ public class IptcFullDiscardTest {
         final byte[] untaggedImage = removeMetaData(taggedImage, true);
         assertEquals(originalImage.length, untaggedImage.length);
     }
-
-    private byte[] removeMetaData(final byte[] bytes, final boolean 
removeApp13Segment) throws Exception {
-        final ByteArrayOutputStream byteArrayOutputStream = new 
ByteArrayOutputStream();
-        new JpegIptcRewriter().removeIptc(bytes, byteArrayOutputStream, 
removeApp13Segment);
-        return byteArrayOutputStream.toByteArray();
-    }
 }

Reply via email to