Fix ExtractorJSTest for commons-lang3 3.22.0

The webarchive-commons 3.0.6 bump pulls in commons-lang3 3.22.0, whose
UnicodeUnescaper no longer throws on malformed \u escapes. Only test
the invalid code points ExtractorJS rejects itself.
This commit is contained in:
Alex Osborne committed 2026-11-17 15:32:33 +09:00
1 parent d7a02be00b
commit b7ce8f9782
1 file changed
+1 -2
@@ -84,8 +84,7 @@ public class ExtractorJSTest extends StringExtractorTestBase {
}
@ParameterizedTest
@ValueSource(strings = {"\\u{}", "\\u{61", "\\u{xyz}", "\\u{110000}",
"\\u{ffffffffffffffff}", "\\u{+61}", "\\u{6_1}"})
@ValueSource(strings = {"\\u{110000}", "\\u{ffffffffffffffff}"})
void rejectsInvalidCodePointEscapes(String escaped) {
assertThrows(IllegalArgumentException.class,
() -> ExtractorJS.UNESCAPE_JAVASCRIPT.translate(escaped));