Unit test with PDF files | Community
Skip to main content
New Participant
December 14, 2021
Solved

Unit test with PDF files

  • December 14, 2021
  • 1 reply
  • 5772 views

Hi everyone,

I’ve created a custom component populated it with some data and I’m having some struggle testing it, any help would be appreciated heres the link to the gist containing all the files(java and json): https://gist.github.com/odaBio/f76d3b15500581ca3fa08143fd9fead1

 

Thanks in advance

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by BrianKasingli

When trying to use resources such as an PDF in your Java Unit tests, you should place the files in the resourced folder, https://www.baeldung.com/junit-src-test-resources-directory-path

 

1 reply

BrianKasingli
BrianKasingliAccepted solution
New Participant
December 21, 2021

When trying to use resources such as an PDF in your Java Unit tests, you should place the files in the resourced folder, https://www.baeldung.com/junit-src-test-resources-directory-path