teller-android / com.levibostian.teller.testing.repository / OnlineRepositoryRefreshResultTesting

OnlineRepositoryRefreshResultTesting

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:

  1. Be able to initialize an instance of OnlineRepository.RefreshResult with 1 line of code.

Companion Object Functions

failure

fun failure(error: Throwable): RefreshResult

skipped

fun skipped(reason: SkippedReason): RefreshResult

success

fun success(): RefreshResult