Skip to content

Commit f7f103e

Browse files
JakeWhartonakarnokd
authored andcommitted
Accept subclasses of Throwable for asserting failure. (#4353)
1 parent 040345f commit f7f103e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/reactivex/observers/TestObserver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,7 @@ public final TestObserver<T> assertResult(T... values) {
698698
* @param values the expected values, asserted in order
699699
* @return this
700700
*/
701-
public final TestObserver<T> assertFailure(Class<Throwable> error, T... values) {
701+
public final TestObserver<T> assertFailure(Class<? extends Throwable> error, T... values) {
702702
return assertValues(values)
703703
.assertError(error)
704704
.assertNotComplete();

0 commit comments

Comments
 (0)