Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error treatment for SwapResponseLiveData #31

Merged
merged 2 commits into from
Apr 22, 2020

Conversation

matheus-corregiari
Copy link
Owner

No description provided.

@matheus-corregiari matheus-corregiari merged commit fb3eeb7 into master Apr 22, 2020
@matheus-corregiari matheus-corregiari deleted the feature/swap-response-error-handling branch April 22, 2020 18:56
} else {
block.invoke()?.let(::setValue)
block.runCatching { invoke() }
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

esse block está igual o de cima... não seria melhor criar uma função pra isso?

Mockito.verify(mockedErrorObserver).invoke(DataTransformationException("Error performing swapSource, please check your transformations", result))

Mirror().on(liveData).invoke().method("postValue").withArgs(DataResult<Any>(null, null, DataResultStatus.SUCCESS))
Thread.sleep(15)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

será q n rola usar aquela lib de testes para livedata e matar o thread sleep?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants