Testing for multiple exceptions with JUnit 4 annotations

后端 未结 7 2288
-上瘾入骨i
-上瘾入骨i 2020-12-30 22:06

Is it possible to test for multiple exceptions in a single JUnit unit test? I know for a single exception one can use, for example

    @Test(expected=Illega         


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