junit test cannot catch exception

前端 未结 0 1275
逝去的感伤
逝去的感伤 2020-12-24 06:53

I wrote some test code.

First, I wrote saving data unit test. It is okay.

Second, I want to test duplicated exception when saving data.

So I save data a

相关标签:
回答
  • 消灭零回复
提交回复
热议问题