How to use JUnit to test asynchronous processes

前端 未结 18 1661
小蘑菇
小蘑菇 2020-11-29 15:06

How do you test methods that fire asynchronous processes with JUnit?

I don\'t know how to make my test wait for the process to end (it is not exactly a unit test, it

18条回答
提交回复
热议问题