How do I stub one method with different return values for different parameters in Mockito?

前端 未结 0 791
遇见更好的自我
遇见更好的自我 2020-12-25 10:26

I\'m trying to stub the saveRecord(Record newRecord) method in databaseService to throw an exception if the newRecord has a value in the field1 attribute of "OldValue&q

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