Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
scordio committed May 10, 2024
1 parent 0d7c474 commit ceac01a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1477,6 +1477,7 @@ public static <THROWABLE extends Throwable> THROWABLE catchThrowableOfType(Class
ThrowingCallable shouldRaiseThrowable) {
return ThrowableAssert.catchThrowableOfType(type, shouldRaiseThrowable);
}

/**
* Allows catching an instance of {@link Exception}.
* <p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ public static <T extends Throwable> ThrowableTypeAssert<T> assertThatExceptionOf
* <pre><code class='java'>assertThatNoException().isThrownBy(() -&gt; { System.out.println("OK"); });</code></pre>
*
* This method is more or less the same of {@code assertThatCode(...).doesNotThrowAnyException();} but in a more natural way.
*
* @return the created {@link NotThrownAssert}.
* @since 3.17.0
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public static <THROWABLE extends Throwable> THROWABLE catchThrowableOfType(Class
if (throwable == null) return null;
// check exception type
new ThrowableAssert<>(throwable).overridingErrorMessage(shouldBeInstance(throwable, type).create())
.isInstanceOf(type);
.isInstanceOf(type);
return (THROWABLE) throwable;
}

Expand Down

0 comments on commit ceac01a

Please sign in to comment.