I'm new in JUnit Testing
I have a maven project which creates files in the target folder when it is executed
target
├───allure-results
│ 30176f70-a91c-4f44-a010-e5b38240865d-attachment.txt
│ 6883764c-ddbd-4c98-b9a4-75020cdd344d-result.json
In my program I get these 2 files with the path target/allure-results
and modify them. Now I have to write a JUnit test for the method wich modify these two files. Of course when I start my test the target folder does not yet exist.
What is the best practice for this situation? Can I create a "test-target" folder and fill it with files?
Aucun commentaire:
Enregistrer un commentaire