forked from slinkydeveloper/assertj-migrator
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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 assertionsMetadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request