Skip to content

Commit 989612e

Browse files
committed
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
1 parent 6224db4 commit 989612e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,7 @@ void testSurrogatePairCharacterExceptionIsBmpCodePoint() throws IOException
656656
}
657657
catch (IllegalStateException e)
658658
{
659-
assertEquals("could not find the glyphId for the character: あ", e.getMessage());
659+
assertEquals("could not find the glyphId for the character: あ, codePoint: 12354 (0x3042)", e.getMessage());
660660
return;
661661
}
662662

@@ -685,7 +685,7 @@ void testSurrogatePairCharacterExceptionIsValidCodePoint() throws IOException
685685
}
686686
catch (IllegalStateException e)
687687
{
688-
assertEquals("could not find the glyphId for the character: 𩸽", e.getMessage());
688+
assertEquals("could not find the glyphId for the character: 𩸽, codePoint: 171581 (0x29E3D)", e.getMessage());
689689
return;
690690
}
691691

0 commit comments

Comments
 (0)