简单的问题。我正在尝试在midje中测试我的方法是否会触发异常。我只能在midje文档中找到类似以下内容的内容。
(fact "Should throw a RuntimeException"
(my-method! anything) =throws=> (RuntimeException.)谢谢。
发布于 2016-09-27 21:32:57
不要紧。我找到了。
(fact "Should throw a RuntimeException"
(my-method! anything) => (throws RuntimeException)这对我很有效。
https://stackoverflow.com/questions/39725916
复制相似问题