Skip to content

Commit

Permalink
Change: fix factory type names
Browse files Browse the repository at this point in the history
  • Loading branch information
ggalmazor committed Oct 27, 2024
1 parent 9697e34 commit d1b6b8f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,23 @@ public static <U extends Runnable> ThrowsException<U> throwsException() {
return new ThrowsException<>(instanceOf(Throwable.class));
}

public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(T item) {
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(V item) {
return new ThrowsException<>(exceptionEqualTo(item));
}

public static <U extends Runnable> ThrowsException<U> throwsException(Matcher<? super Throwable> exceptionMatcher) {
return new ThrowsException<>(exceptionMatcher);
}

public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(Class<T> item) {
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(Class<V> item) {
return new ThrowsException<>(instanceOf(item));
}

public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(Class<T> item , String message) {
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(Class<V> item , String message) {
return new ThrowsException<>(allOf(instanceOf(item), withMessage(message)));
}

public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(Class<T> item , Matcher<? super Throwable> exceptionMatcher) {
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(Class<V> item , Matcher<? super Throwable> exceptionMatcher) {
return new ThrowsException<>(allOf(instanceOf(item), exceptionMatcher));
}

Expand Down

0 comments on commit d1b6b8f

Please sign in to comment.