-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
177 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/test/java/test/org/fugerit/java/doc/mod/itext/poc/TestSpec.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package test.org.fugerit.java.doc.mod.itext.poc; | ||
|
||
import org.fugerit.java.core.cfg.ConfigRuntimeException; | ||
import org.fugerit.java.doc.mod.openpdf.PdfTypeHandler; | ||
import org.fugerit.java.doc.mod.openpdf.helpers.OpenPpfDocHandler; | ||
import org.junit.Assert; | ||
import org.junit.BeforeClass; | ||
import org.junit.Test; | ||
|
||
public class TestSpec extends TestDocBase { | ||
|
||
private static final String CUSTOM_FONT = "Calibri"; | ||
|
||
@BeforeClass | ||
public static void init() { | ||
try { | ||
OpenPpfDocHandler.registerFont( CUSTOM_FONT , "src/test/resources/font/TitilliumWeb-Regular.ttf"); | ||
} catch (Exception e) { | ||
throw new ConfigRuntimeException( e ); | ||
} | ||
} | ||
|
||
private static final String DEFAULT_DOC = "test"; | ||
|
||
@Test | ||
public void testOpenPDF() { | ||
boolean ok = this.testDocWorker( DEFAULT_DOC , PdfTypeHandler.HANDLER ); | ||
Assert.assertTrue(ok); | ||
} | ||
|
||
} |
Large diffs are not rendered by default.
Oops, something went wrong.