Skip to content

Commit

Permalink
PDFBOX-5812: refactor
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1917509 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
THausherr committed May 5, 2024
1 parent 17d5f61 commit f6d4687
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@
class TestFontEmbedding
{
private static final File OUT_DIR = new File("target/test-output");
private static final File IN_DIR = new File("src/test/resources/org/apache/pdfbox/ttf");


@BeforeAll
static void setUp()
Expand Down Expand Up @@ -231,8 +233,6 @@ void testBengali() throws IOException
document.save(pdf);
}

File IN_DIR = new File("src/test/resources/org/apache/pdfbox/ttf");

// compare rendering
if (!TestPDFToImage.doTestFile(pdf, IN_DIR.getAbsolutePath(), OUT_DIR.getAbsolutePath()))
{
Expand Down Expand Up @@ -282,8 +282,6 @@ void testDevanagari() throws IOException
document.save(pdf);
}

File IN_DIR = new File("src/test/resources/org/apache/pdfbox/ttf");

// compare rendering
if (!TestPDFToImage.doTestFile(pdf, IN_DIR.getAbsolutePath(), OUT_DIR.getAbsolutePath()))
{
Expand Down Expand Up @@ -332,8 +330,6 @@ void testGujarati() throws IOException
document.save(pdf);
}

File IN_DIR = new File("src/test/resources/org/apache/pdfbox/ttf");

// compare rendering
if (!TestPDFToImage.doTestFile(pdf, IN_DIR.getAbsolutePath(), OUT_DIR.getAbsolutePath()))
{
Expand Down Expand Up @@ -601,7 +597,6 @@ void testSurrogatePairCharacter() throws IOException
{
final String message = "𩸽\uD867\uDE3D";
File pdf = new File(OUT_DIR, "PDFBOX-5812.pdf");
File IN_DIR = new File("src/test/resources/org/apache/pdfbox/ttf");

ByteArrayOutputStream baos;
try (PDDocument doc = new PDDocument())
Expand Down

0 comments on commit f6d4687

Please sign in to comment.