class OnlineRepositoryRefreshResultTesting
Convenient utility to generate instances of OnlineRepository.RefreshResult used for testing purposes.
You can use this class directly, or, use the recommended extension functions in the OnlineRepository.RefreshResult.Testing object.
Intentions of OnlineRepositoryRefreshResultTesting:
fun failure(error: Throwable): RefreshResult |
|
fun skipped(reason: SkippedReason): RefreshResult |
|
fun success(): RefreshResult |