File tree Expand file tree Collapse file tree
fontbox/src/test/java/org/apache/fontbox/ttf
pdfbox/src/test/java/org/apache/pdfbox/pdmodel Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717
1818package org .apache .fontbox .ttf ;
1919
20- import static org .junit .jupiter .api .Assertions .fail ;
2120
2221import java .io .IOException ;
2322import java .io .InputStream ;
@@ -38,7 +37,7 @@ public class GSUBTableDebugger
3837 private static final String LOHIT_BENGALI_FONT_FILE = "/ttf/Lohit-Bengali.ttf" ;
3938
4039 @ Test
41- void printLohitBengaliTTF ()
40+ void printLohitBengaliTTF () throws IOException
4241 {
4342 try (InputStream is1 = GSUBTableDebugger .class .getResourceAsStream (LOHIT_BENGALI_FONT_FILE );
4443 InputStream is2 = GSUBTableDebugger .class .getResourceAsStream (LOHIT_BENGALI_FONT_FILE ))
@@ -60,10 +59,6 @@ void printLohitBengaliTTF()
6059 new GSUBTablePrintUtil ().printCharacterToGlyph (gsubData ,
6160 trueTypeFont .getUnicodeCmapLookup ());
6261 }
63- catch (IOException exception )
64- {
65- fail (exception );
66- }
6762 }
6863
6964}
Original file line number Diff line number Diff line change 1717package org .apache .pdfbox .pdmodel ;
1818
1919import static org .junit .jupiter .api .Assertions .assertEquals ;
20- import static org .junit .jupiter .api .Assertions .fail ;
2120
2221import java .io .IOException ;
2322import java .util .List ;
@@ -281,9 +280,5 @@ void testGeneralGraphicStateOperatorTextMode() throws IOException
281280 contentStream .endText ();
282281 contentStream .close ();
283282 }
284- catch (IllegalArgumentException exception )
285- {
286- fail (exception );
287- }
288283 }
289284}
You can’t perform that action at this time.
0 commit comments