From 989612e0f1826c0fc13e29da123246dc05259c32 Mon Sep 17 00:00:00 2001 From: Tilman Hausherr Date: Sat, 18 Jan 2025 14:22:11 +0000 Subject: [PATCH] PDFBOX-5660: adjust test to improved exception message git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1923208 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java b/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java index 6918e3b7ca5..6a6571e1865 100644 --- a/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java +++ b/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java @@ -656,7 +656,7 @@ void testSurrogatePairCharacterExceptionIsBmpCodePoint() throws IOException } catch (IllegalStateException e) { - assertEquals("could not find the glyphId for the character: あ", e.getMessage()); + assertEquals("could not find the glyphId for the character: あ, codePoint: 12354 (0x3042)", e.getMessage()); return; } @@ -685,7 +685,7 @@ void testSurrogatePairCharacterExceptionIsValidCodePoint() throws IOException } catch (IllegalStateException e) { - assertEquals("could not find the glyphId for the character: 𩸽", e.getMessage()); + assertEquals("could not find the glyphId for the character: 𩸽, codePoint: 171581 (0x29E3D)", e.getMessage()); return; }