Junit – Help required to write junit for the below code
Im trying to write the junit for the below code and kind of stuck.
When I have complex setup before test (DB, Kafka client, etc) where should I store all these state variables and config info?
Where should I store config information and setUp variables for the test?
Is this considered good practice?:
Junit 5 tests are not getting discovered
I am using Springboot version-2.4.13 and below junit dependency:-
junit-jupiter-api -5.7.2
junit-bom- 5.7.2
junit-platform-suite-api-1.8.0
junit-platform-suite- 1.8.0