It should be feasible to match simple try-catch assertions like:
try {
[codeblock]
fail("this message doesn't really matter")
} catch(SomeException e) {
// Some assert on the exception
}
This can be converted to:
assertThatThrownBy(() -> {
[codeblock]
}).isInstanceOf(SomeException.class) // Chain other assertions
It should be feasible to match simple try-catch assertions like:
This can be converted to: