retrofit-mock / retrofit2.mock / NetworkBehavior / setFailurePercent

setFailurePercent

fun setFailurePercent(failurePercent: Int): Unit

Set the percentage of calls to #calculateIsFailure() that return true.