How would a test case test for an exception?

后端 未结 0 567
忘掉有多难
忘掉有多难 2021-01-31 17:00

For my code I have:

public void addContact(Contact contact) {
  if (contact == null) {
    throw new IllegalArgumentExcep         


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