Junit测试报错: java.lang.AssertionError: expected:<...

我个人觉得是,等待任务启动的时间不够长,可以把
Threads.sleep(2000);
中时间2秒,改长一些,就可以通过测试;

你可能感兴趣的:(JUnit)