Skip to content

Commit

Permalink
PDFBOX-5812: Sonar fix
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1917623 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed May 9, 2024
1 parent 694efd5 commit a5da0f8
Showing 1 changed file with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -654,13 +654,14 @@ void testSurrogatePairCharacterExceptionIsBmpCodePoint() throws IOException
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
Expand All @@ -682,12 +683,13 @@ void testSurrogatePairCharacterExceptionIsValidCodePoint() throws IOException
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());
}
}
}

0 comments on commit a5da0f8

Please sign in to comment.