@NotNull abstract fun outerRule(@NotNull testRule: TestRule): Mockspresso.Builder
Treat the resulting Mockspresso.Rule
as a RuleChain, and wrap it using the supplied testRule as an outerRule. Rules are processed in the order they are added to the builder. So the first outerRule added will be the outermost-rule.
testRule
- TestRule: The testRule that should be chained outside the Mockspresso.Rule
Return
Mockspresso.Builder: this
@NotNull abstract fun outerRule(@NotNull methodRule: MethodRule): Mockspresso.Builder
Treat the resulting Mockspresso.Rule
as a RuleChain, and wrap it using the supplied testRule as an outerRule. Rules are processed in the order they are added to the builder. So the first outerRule added will be the outermost-rule.
methodRule
- MethodRule: The methodRule that should be chained outside the Mockspresso.Rule
Return
Mockspresso.Builder: this