pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From msahy...@apache.org
Subject svn commit: r1745021 - in /pdfbox/trunk/pdfbox/src/test: java/org/apache/pdfbox/pdmodel/interactive/annotation/ resources/org/apache/pdfbox/pdmodel/interactive/annotation/
Date Sun, 22 May 2016 07:59:59 GMT
Author: msahyoun
Date: Sun May 22 07:59:58 2016
New Revision: 1745021

URL: http://svn.apache.org/viewvc?rev=1745021&view=rev
Log:
PDFBOX-3353: don't depend on order of test runs

Added:
    pdfbox/trunk/pdfbox/src/test/resources/org/apache/pdfbox/pdmodel/interactive/annotation/
    pdfbox/trunk/pdfbox/src/test/resources/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.pdf
  (with props)
Modified:
    pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.java

Modified: pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.java
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.java?rev=1745021&r1=1745020&r2=1745021&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.java
(original)
+++ pdfbox/trunk/pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.java
Sun May 22 07:59:58 2016
@@ -51,7 +51,7 @@ public class PDSquareAnnotationTest
     // the location of the annotation
     static PDRectangle rectangle;
     
-    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/pdmodel/interactive/annotation");
     private static final String NAME_OF_PDF = "PDSquareAnnotationTest.pdf";
 
     @Before
@@ -99,10 +99,6 @@ public class PDSquareAnnotationTest
 
         annotation.constructAppearances();
         annotations.add(annotation);
-        
-        // store for validation test
-        File file = new File(OUT_DIR, NAME_OF_PDF);
-        document.save(file);
         document.close();
     }
     
@@ -112,7 +108,7 @@ public class PDSquareAnnotationTest
         // the width of the <nnotations border
         final int borderWidth = 1;
 
-        File file = new File(OUT_DIR, NAME_OF_PDF);
+        File file = new File(IN_DIR, NAME_OF_PDF);
         PDDocument document = PDDocument.load(file);
         PDPage page = document.getPage(0);
         List<PDAnnotation> annotations = page.getAnnotations();

Added: pdfbox/trunk/pdfbox/src/test/resources/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.pdf
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox/src/test/resources/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.pdf?rev=1745021&view=auto
==============================================================================
Binary file - no diff available.

Propchange: pdfbox/trunk/pdfbox/src/test/resources/org/apache/pdfbox/pdmodel/interactive/annotation/PDSquareAnnotationTest.pdf
------------------------------------------------------------------------------
    svn:mime-type = application/pdf



Mime
View raw message