Test specific exception in catch clause with multiple exceptions in JUnit4

后端 未结 0 1597
刺人心
刺人心 2021-02-04 02:57

Is there a way to test whether a specific exception gets thrown in a catch clause with multiple exceptions? Like so:

public void tryToHandleSample(double[] data,          


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