Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Unit test with PDF files

odabio
Level 3
Level 3

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

1 Accepted Solution
BrianKasingli
Correct answer by
Community Advisor
Community Advisor

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

 

View solution in original post

1 Reply
BrianKasingli
Correct answer by
Community Advisor
Community Advisor

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