Groovy + Spock testing void method oof type “Validator” that throws error when conditions are not met

前端 未结 0 1312
攒了一身酷
攒了一身酷 2021-02-14 03:25

I use Groovy + Spock as unit testing tool and I wonder how to write testing methods that return void - sth like validator that can throw an error when conditions are not fulfill

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