Author: tilman Date: Thu May 9 14:47:01 2024 New Revision: 1917623 URL: http://svn.apache.org/viewvc?rev=1917623&view=rev Log: PDFBOX-5812: Sonar fix
Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java?rev=1917623&r1=1917622&r2=1917623&view=diff ============================================================================== --- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java (original) +++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java Thu May 9 14:47:01 2024 @@ -654,13 +654,14 @@ class TestFontEmbedding contents.showText(message); contents.endText(); } + catch (IllegalStateException e) + { + assertEquals("could not find the glyphId for the character: ã", e.getMessage()); + return; + } fail(); } - catch (IllegalStateException e) - { - assertEquals("could not find the glyphId for the character: ã", e.getMessage()); - } } @Test @@ -682,12 +683,13 @@ class TestFontEmbedding contents.showText(message); contents.endText(); } + catch (IllegalStateException e) + { + assertEquals("could not find the glyphId for the character: 𩸽", e.getMessage()); + return; + } fail(); } - catch (IllegalStateException e) - { - assertEquals("could not find the glyphId for the character: 𩸽" ,e.getMessage()); - } } }