11package com .itextpdf .signatures ;
22
3-
43import com .itextpdf .kernel .geom .Rectangle ;
54import com .itextpdf .kernel .pdf .PdfReader ;
6- import com .itextpdf .kernel .pdf .PdfWriter ;
75import com .itextpdf .kernel .utils .CompareTool ;
86import com .itextpdf .test .annotations .type .IntegrationTest ;
97
3028import org .junit .Test ;
3129import org .junit .experimental .categories .Category ;
3230
33-
34-
3531//TODO: add some validation of results in future
3632@ Category (IntegrationTest .class )
3733public class SigningTest {
@@ -77,7 +73,7 @@ public void simpleSigningTest() throws GeneralSecurityException, IOException, In
7773
7874 Assert .assertNull (new CompareTool ().compareVisually (dest , sourceFolder + "cmp_" + fileName , destinationFolder , "diff_" ,
7975 new HashMap <Integer , List <Rectangle >>() {{
80- put (1 , Arrays .asList (new Rectangle (67 , 690 , 148 , 15 )));
76+ put (1 , Arrays .asList (new Rectangle (67 , 690 , 155 , 15 )));
8177 }}));
8278 }
8379
@@ -94,7 +90,7 @@ public void signingIntoExistingFieldTest01() throws GeneralSecurityException, IO
9490
9591 Assert .assertNull (new CompareTool ().compareVisually (dest , sourceFolder + "cmp_" + fileName , destinationFolder , "diff_" ,
9692 new HashMap <Integer , List <Rectangle >>() {{
97- put (1 , Arrays .asList (new Rectangle (67 , 725 , 148 , 15 )));
93+ put (1 , Arrays .asList (new Rectangle (67 , 725 , 155 , 15 )));
9894 }}));
9995 }
10096
@@ -111,7 +107,7 @@ public void signingIntoExistingFieldTest02() throws GeneralSecurityException, IO
111107
112108 Assert .assertNull (new CompareTool ().compareVisually (dest , sourceFolder + "cmp_" + fileName , destinationFolder , "diff_" ,
113109 new HashMap <Integer , List <Rectangle >>() {{
114- put (1 , Arrays .asList (new Rectangle (67 , 725 , 148 , 15 )));
110+ put (1 , Arrays .asList (new Rectangle (67 , 725 , 155 , 15 )));
115111 }}));
116112 }
117113
0 commit comments