-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Prettify the error message of TestObserver #6352
Copy link
Copy link
Closed
Description
Version: 2.2.5
It may be better if the Expected message and Actual one are printed on its OWN line instead of contacting them. It's a hard time to find out what the difference is.
java.lang.AssertionError: Values at position 0 differ; Expected: MobileNumberState(isErrorMsgVisible=false, isNextButtonVisible=false, isNextButtonEnabled=false, selectedCountry=Country(name=China, code=86), mobileNumber=, navigation=null) (class: MobileNumberState), Actual: MobileNumberState(isErrorMsgVisible=false, isNextButtonVisible=false, isNextButtonEnabled=false, selectedCountry=Country(name=HK, code=852), mobileNumber=, navigation=null) (class: MobileNumberState) (latch = 1, values = 1, errors = 0, completions = 0)What I expect is
java.lang.AssertionError: Values at position 0 differ;
Expected: MobileNumberState(isErrorMsgVisible=false....
Actual: MobileNumberState(isErrorMsgVisible=false....Reactions are currently unavailable