Skip to content

pdf-test ignores error description given using as method (in AssertJ) #52

Description

@cbxp

This test:

assertThat(pdf)
   .as("My super shiny PDF report.pdf")
   .containsText("John McClane")

doesn't show the explanation My super shiny PDF report.pdf in the error message:

java.lang.AssertionError: 
Expected: a PDF containing "John McClane"
     but: was "<actual PDF content>"
Expected :a PDF containing "John McClane"
Actual   :"<actual PDF content>"

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions