quicktheories / QuickTheories

Property based testing for Java 8

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Exception handling errors in TheoryBuilder

brijendra98 opened this issue · comments

If the piece of code inside .check(...) might throw an exception, then code doesn't compile.
This is because QuickTheory assumes that the arbitrary predicate inside .check(...) never throws an exception.
To fix this, all methods in TheoryBuilder should be marked as throws Exception because they might actually throw an exception.