method initializationerror not found:JUnit4单元测试报错问题

在进行单元测试时出现以下问题:

你知道这是为什么吗?

脑子有泡,把测试方法写成了private ,可不要报错吗?

引以为戒,测试方法一定写成公开的。

猜你喜欢

转载自blog.csdn.net/limengautoman/article/details/81540374