Catch exception in Unit Test

How to set expected exception value in test in Clojure?

Thanks in advance!

+7
source share
1 answer
(is (thrown? NumberFormatException (Integer/parseInt "49FREN"))) 
+12
source

All Articles