ljacqu/wordeval

Technical: Create exception wrapper for TestUtil.R

ljacqu opened this issue · 0 comments

TestUtil.R has a lot of duplicated code because of the exceptions that need to be caught and the need to call setAccessible on the retrieved member. Similar to Durian's Errors class we could wrap a Supplier to throw runtime exceptions only.

https://github.com/diffplug/durian/blob/v2.0/test/com/diffplug/common/base/ErrorsExample.java#L178-L198