retrofit-mock / retrofit2.mock / NetworkBehavior / calculateIsFailure

calculateIsFailure

fun calculateIsFailure(): Boolean

Randomly determine whether this call should result in a network failure in accordance with configured behavior. When true, #failureException() should be thrown.