JUnit : Files containing a string object in input and in output
Hello everybody 🤠
I want to test a program which receives a file containing a string object specified by the user and which produces a file containing another string object. Let's assume the business logic of the program is delimited in one single method.
I have a question when it comes to creating unit tests for this use-case : how can i code a test which input is a file containing a string object i want to specify and which output is a new file containing another string object representing the result of this treatment ?
Are there alternatives for this use-case for JUnit within a springboot application and for JUnit within a simple java core application ?
Thank you for your help ! 😁
3
1 comment
Jean-Christophe Chevallier
2
JUnit : Files containing a string object in input and in output
Amigoscode
skool.com/amigoscode
A free learning community led by Nelson Djalo. Master Programming & AI, get updates, and grow in a fast-moving industry.
Leaderboard (30-day)
Powered by