You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In order to test occurred error in subscriber we are using TestSubscriber.assertError(). However, the method accepts either Throwable or class. So if we want to check the details of the thrown exception, we need to have methods equals() and hashCode() in each exception. But it's a bad practice.
Does it make sense to have a matcher for checking thrown exception and it?
The text was updated successfully, but these errors were encountered:
In order to test occurred error in subscriber we are using
TestSubscriber.assertError()
. However, the method accepts eitherThrowable
or class. So if we want to check the details of the thrown exception, we need to have methodsequals()
andhashCode()
in each exception. But it's a bad practice.Does it make sense to have a matcher for checking thrown exception and it?
The text was updated successfully, but these errors were encountered: