quicktheories / QuickTheories

Property based testing for Java 8
Apache License 2.0
505 stars 51 forks source link

Exception handling errors in TheoryBuilder #43

Open brijendra98 opened 6 years ago

brijendra98 commented 6 years ago

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.