This is an automated email from the ASF dual-hosted git repository. garydgregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-fileupload.git
commit 89306450198219e131154b260a6d8fcc278901f4 Author: Gary Gregory <[email protected]> AuthorDate: Sat Jul 18 07:20:38 2026 -0700 Sort members. --- .../commons/fileupload2/core/RFC2231UtilityTestCase.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/RFC2231UtilityTestCase.java b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/RFC2231UtilityTestCase.java index 7e970f43..adf2f919 100644 --- a/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/RFC2231UtilityTestCase.java +++ b/commons-fileupload2-core/src/test/java/org/apache/commons/fileupload2/core/RFC2231UtilityTestCase.java @@ -51,12 +51,6 @@ public final class RFC2231UtilityTestCase { assertThrows(IllegalArgumentException.class, () -> RFC2231Utils.decodeText("ISO-8859-1''hello%3\u8a35")); } - @Test - void testDecodeTruncatedPercentEncoded() throws Exception { - assertThrows(IllegalArgumentException.class, () -> RFC2231Utils.decodeText("ISO-8859-1''hello%")); - assertThrows(IllegalArgumentException.class, () -> RFC2231Utils.decodeText("ISO-8859-1''hello%3")); - } - @Test void testDecodeIso88591() throws Exception { assertEncoded("\u00A3 rate", "iso-8859-1'en'%A3%20rate"); // "£ rate" @@ -67,6 +61,12 @@ public final class RFC2231UtilityTestCase { assertThrows(IllegalArgumentException.class, () -> RFC2231Utils.decodeText("ISO-8859-1''Not*allowed")); } + @Test + void testDecodeTruncatedPercentEncoded() throws Exception { + assertThrows(IllegalArgumentException.class, () -> RFC2231Utils.decodeText("ISO-8859-1''hello%")); + assertThrows(IllegalArgumentException.class, () -> RFC2231Utils.decodeText("ISO-8859-1''hello%3")); + } + @Test void testDecodeUtf8() throws Exception { assertEncoded("\u00a3 \u0061\u006e\u0064 \u20ac \u0072\u0061\u0074\u0065\u0073", "UTF-8''%c2%a3%20and%20%e2%82%ac%20rates"); // "£ and € rates"
