@@ -60,6 +60,7 @@ This file is part of the iText (R) project.
60
60
import com .itextpdf .layout .renderer .IRenderer ;
61
61
import com .itextpdf .test .ExtendedITextTest ;
62
62
import com .itextpdf .test .annotations .type .IntegrationTest ;
63
+
63
64
import org .junit .Assert ;
64
65
import org .junit .BeforeClass ;
65
66
import org .junit .Rule ;
@@ -90,7 +91,6 @@ public void collapsingMarginsTest01() throws IOException, InterruptedException {
90
91
String cmpFileName = sourceFolder + "cmp_collapsingMarginsTest01.pdf" ;
91
92
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (outFileName ));
92
93
93
-
94
94
drawPageBorders (pdfDocument , 4 );
95
95
96
96
String textByron =
@@ -140,7 +140,6 @@ public void collapsingMarginsTest02() throws IOException, InterruptedException {
140
140
String cmpFileName = sourceFolder + "cmp_collapsingMarginsTest02.pdf" ;
141
141
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (outFileName ));
142
142
143
-
144
143
drawPageBorders (pdfDocument , 3 );
145
144
146
145
String textByron =
@@ -196,7 +195,6 @@ public void collapsingMarginsTest03() throws IOException, InterruptedException {
196
195
String cmpFileName = sourceFolder + "cmp_collapsingMarginsTest03.pdf" ;
197
196
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (outFileName ));
198
197
199
-
200
198
drawPageBorders (pdfDocument , 3 );
201
199
202
200
String textByron =
@@ -249,7 +247,6 @@ public void collapsingMarginsTest04() throws IOException, InterruptedException {
249
247
String cmpFileName = sourceFolder + "cmp_collapsingMarginsTest04.pdf" ;
250
248
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (outFileName ));
251
249
252
-
253
250
drawPageBorders (pdfDocument , 3 );
254
251
255
252
String textByron =
@@ -307,7 +304,6 @@ public void collapsingMarginsTest05() throws IOException, InterruptedException {
307
304
String cmpFileName = sourceFolder + "cmp_collapsingMarginsTest05.pdf" ;
308
305
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (outFileName ));
309
306
310
-
311
307
drawPageBorders (pdfDocument , 2 );
312
308
313
309
String textByron =
@@ -357,9 +353,12 @@ private void drawPageBorders(PdfDocument pdfDocument, int pageNum) {
357
353
}
358
354
359
355
@ Test
360
- // TODO DEVSIX-2901 the exception should not be thrown
356
+ /* TODO DEVSIX-2901 the exception should not be thrown
357
+ if after DEVSIX-2901 the exception persists,
358
+ change the type of the expected exception to a more specific one to make the test stricter.
359
+ */
361
360
public void columnRendererTest () throws IOException , InterruptedException {
362
- junitExpectedException .expect (ArrayIndexOutOfBoundsException .class );
361
+ junitExpectedException .expect (Exception .class );
363
362
String outFileName = destinationFolder + "columnRendererTest.pdf" ;
364
363
String cmpFileName = sourceFolder + "cmp_columnRendererTest.pdf" ;
365
364
PdfDocument pdfDocument = new PdfDocument (new PdfWriter (outFileName ));
@@ -378,7 +377,6 @@ public void columnRendererTest() throws IOException, InterruptedException {
378
377
Document doc = new Document (pdfDocument );
379
378
doc .setProperty (Property .COLLAPSING_MARGINS , true );
380
379
381
-
382
380
Paragraph p = new Paragraph ();
383
381
for (int i = 0 ; i < 10 ; i ++) {
384
382
p .add (textByron );
0 commit comments