1
1
package com .itextpdf .signatures ;
2
2
3
-
4
3
import com .itextpdf .kernel .geom .Rectangle ;
5
4
import com .itextpdf .kernel .pdf .PdfReader ;
6
- import com .itextpdf .kernel .pdf .PdfWriter ;
7
5
import com .itextpdf .kernel .utils .CompareTool ;
8
6
import com .itextpdf .test .annotations .type .IntegrationTest ;
9
7
30
28
import org .junit .Test ;
31
29
import org .junit .experimental .categories .Category ;
32
30
33
-
34
-
35
31
//TODO: add some validation of results in future
36
32
@ Category (IntegrationTest .class )
37
33
public class SigningTest {
@@ -77,7 +73,7 @@ public void simpleSigningTest() throws GeneralSecurityException, IOException, In
77
73
78
74
Assert .assertNull (new CompareTool ().compareVisually (dest , sourceFolder + "cmp_" + fileName , destinationFolder , "diff_" ,
79
75
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 )));
81
77
}}));
82
78
}
83
79
@@ -94,7 +90,7 @@ public void signingIntoExistingFieldTest01() throws GeneralSecurityException, IO
94
90
95
91
Assert .assertNull (new CompareTool ().compareVisually (dest , sourceFolder + "cmp_" + fileName , destinationFolder , "diff_" ,
96
92
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 )));
98
94
}}));
99
95
}
100
96
@@ -111,7 +107,7 @@ public void signingIntoExistingFieldTest02() throws GeneralSecurityException, IO
111
107
112
108
Assert .assertNull (new CompareTool ().compareVisually (dest , sourceFolder + "cmp_" + fileName , destinationFolder , "diff_" ,
113
109
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 )));
115
111
}}));
116
112
}
117
113
0 commit comments