Skip to content

Commit

Permalink
#126 Corrected test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Deser committed May 24, 2021
1 parent 2e26f62 commit 4fcf4b0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class SettingsColumnTest {
public void differentSettings() throws IOException {
final Table.TableBuilder tableBuilder = Table.builder()
.addColumn(Column.builder().width(100).backgroundColor(PURPLE_LIGHT_1).build())
.addColumn(Column.builder().width(100).build())
.addColumn(Column.builder().width(100).fontSize(13).build())
.addColumn(Column.builder().width(100).backgroundColor(PURPLE_LIGHT_2).build())
.fontSize(8)
.font(HELVETICA)
Expand All @@ -44,6 +44,15 @@ public void differentSettings() throws IOException {
);
}

tableBuilder.addRow(
Row.builder()
.add(TextCell.builder().text("abcd").build())
.add(TextCell.builder().text("abcd").build())
.add(TextCell.builder().text("abcd").build())
.backgroundColor(Color.GREEN)
.build()
);

TestUtils.createAndSaveDocumentWithTable(FILE_NAME, tableBuilder.build());

CompareResult compareResult = new PdfComparator<>(getExpectedPdfFor(FILE_NAME), getActualPdfFor(FILE_NAME)).compare();
Expand Down
Binary file added src/test/reference/settingsColumnSettings.pdf
Binary file not shown.

0 comments on commit 4fcf4b0

Please sign in to comment.