JUnit ExpectedException Rule doesn't effect

前端 未结 0 725
遥遥无期
遥遥无期 2020-12-16 16:44

I am using junit 4.12
and make a public field marked @Rule, a public test method marked @Test, and expect a specific Exception. but when i run the test, it PASSED. I a

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