Skip to content

Commit 1c25237

Browse files
committed
Remove native-image-test module
It's not required anymore because all tests are also executed in native. DEVSIX-8795
1 parent affac8f commit 1c25237

File tree

14 files changed

+28
-1143
lines changed

14 files changed

+28
-1143
lines changed

io/src/test/java/com/itextpdf/io/font/FontProgramTest.java

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,32 @@ public void cidFontWithCmapTest() throws IOException {
113113
Assertions.assertEquals(1, glyph.getCode());
114114
Assertions.assertEquals(278, glyph.getWidth());
115115
}
116+
117+
@Test
118+
public void standardFontsTest() throws IOException {
119+
checkStandardFont(StandardFonts.COURIER);
120+
checkStandardFont(StandardFonts.COURIER_BOLD);
121+
checkStandardFont(StandardFonts.COURIER_BOLDOBLIQUE);
122+
checkStandardFont(StandardFonts.COURIER_OBLIQUE);
123+
124+
checkStandardFont(StandardFonts.HELVETICA);
125+
checkStandardFont(StandardFonts.HELVETICA_BOLD);
126+
checkStandardFont(StandardFonts.HELVETICA_BOLDOBLIQUE);
127+
checkStandardFont(StandardFonts.HELVETICA_OBLIQUE);
128+
129+
checkStandardFont(StandardFonts.SYMBOL);
130+
131+
checkStandardFont(StandardFonts.TIMES_BOLD);
132+
checkStandardFont(StandardFonts.TIMES_BOLDITALIC);
133+
checkStandardFont(StandardFonts.TIMES_ITALIC);
134+
checkStandardFont(StandardFonts.TIMES_ROMAN);
135+
136+
checkStandardFont(StandardFonts.ZAPFDINGBATS);
137+
}
138+
139+
private void checkStandardFont(String fontName) throws IOException {
140+
FontProgram font = FontProgramFactory.createFont(fontName, null, false);
141+
Assertions.assertTrue(font instanceof Type1Font);
142+
Assertions.assertEquals(fontName, font.getFontNames().getFontName());
143+
}
116144
}

native-image-test/noSharpen.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

native-image-test/pom.xml

Lines changed: 0 additions & 141 deletions
This file was deleted.

native-image-test/src/test/java/com/itextpdf/nativeimage/BouncyCastleTest.java

Lines changed: 0 additions & 77 deletions
This file was deleted.

native-image-test/src/test/java/com/itextpdf/nativeimage/FormsTest.java

Lines changed: 0 additions & 59 deletions
This file was deleted.

0 commit comments

Comments
 (0)