@@ -2236,7 +2236,7 @@ public static <T> Matcher<Optional<T>> optionalWithValue(Matcher<? super T> matc
22362236 * @param <T> type of the Runnable
22372237 * @return The matcher.
22382238 */
2239- public static <T extends Runnable > ThrowsException <T > throwsException () {
2239+ public static <T extends Runnable > Matcher <T > throwsException () {
22402240 return ThrowsException .throwsException ();
22412241 }
22422242
@@ -2248,7 +2248,7 @@ public static <T extends Runnable> ThrowsException<T> throwsException() {
22482248 * @param throwableClass the Throwable class against which examined exceptions are compared
22492249 * @return The matcher.
22502250 */
2251- public static <T extends Runnable , U extends Throwable > ThrowsException <T > throwsException (Class <U > throwableClass ) {
2251+ public static <T extends Runnable , U extends Throwable > Matcher <T > throwsException (Class <U > throwableClass ) {
22522252 return ThrowsException .throwsException (throwableClass );
22532253 }
22542254
@@ -2261,7 +2261,7 @@ public static <T extends Runnable, U extends Throwable> ThrowsException<T> throw
22612261 * @param message the String against which examined exception messages are compared
22622262 * @return The matcher.
22632263 */
2264- public static <T extends Runnable , U extends Throwable > ThrowsException <T > throwsException (Class <U > throwableClass , String message ) {
2264+ public static <T extends Runnable , U extends Throwable > Matcher <T > throwsException (Class <U > throwableClass , String message ) {
22652265 return ThrowsException .throwsException (throwableClass , message );
22662266 }
22672267
@@ -2274,7 +2274,7 @@ public static <T extends Runnable, U extends Throwable> ThrowsException<T> throw
22742274 * @param messageMatcher matcher to validate exception's message
22752275 * @return The matcher.
22762276 */
2277- public static <T extends Runnable , U extends Throwable > ThrowsException <T > throwsException (Class <U > throwableClass , Matcher <String > messageMatcher ) {
2277+ public static <T extends Runnable , U extends Throwable > Matcher <T > throwsException (Class <U > throwableClass , Matcher <String > messageMatcher ) {
22782278 return ThrowsException .throwsException (throwableClass , messageMatcher );
22792279 }
22802280
@@ -2286,7 +2286,7 @@ public static <T extends Runnable, U extends Throwable> ThrowsException<T> throw
22862286 * @param message the String against which examined exception messages are compared
22872287 * @return The matcher.
22882288 */
2289- public static <T extends Runnable , U extends Throwable > ThrowsException <T > throwsExceptionWithMessage (String message ) {
2289+ public static <T extends Runnable , U extends Throwable > Matcher <T > throwsExceptionWithMessage (String message ) {
22902290 return ThrowsException .throwsExceptionWithMessage (message );
22912291 }
22922292
@@ -2298,7 +2298,7 @@ public static <T extends Runnable, U extends Throwable> ThrowsException<T> throw
22982298 * @param messageMatcher matcher to validate exception's message
22992299 * @return The matcher.
23002300 */
2301- public static <T extends Runnable , U extends Throwable > ThrowsException <T > throwsExceptionWithMessage (Matcher <String > messageMatcher ) {
2301+ public static <T extends Runnable , U extends Throwable > Matcher <T > throwsExceptionWithMessage (Matcher <String > messageMatcher ) {
23022302 return ThrowsException .throwsExceptionWithMessage (messageMatcher );
23032303 }
23042304}
0 commit comments