Skip to content

FillPDFServiceV2UnitTests writes debug PDF to disk instead of asserting #283

Description

@danielsjoo

FillPDFServiceV2UnitTests.fillPDFServiceSSSuccess dumps a filled PDF to src/test/resources/ss-5_filled_out_test_fill.pdf on every test run. This is leftover debug code — the original author likely couldn't get IOUtils.contentEquals to work for InputStream comparison, so they wrote the file to disk for visual inspection and never replaced it with a proper assertion.

The test should assert that the filled PDF fields match the expected form answers, then clean up. No files should be written to disk.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions