failureRate

Sets the probability of throwing an exception on each call. Prefer failCount for deterministic tests.

Parameters

rate

Value in 0.0, 1.0. Default is 0.0 (no failures).