Skip to content

Prettify the error message of TestObserver #6352

@jaychang0917

Description

@jaychang0917

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....

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions