We have a non-concurrent java snippet to generate jwt token and now need to write JUnit for the same.
There are few queries about this :
- Is it valid to write
concurrent junitfornon-concurrent code? - If yes, what I should try to
JUnitin that except the normal flow? as there is notshared/mutableproperty.