mockspresso-api / com.episode6.hackit.mockspresso / Mockspresso / Builder / innerRule

innerRule

@NotNull abstract fun innerRule(@NotNull testRule: TestRule): Mockspresso.Builder

Treat the resulting Mockspresso.Rule as a RuleChain, and wrap the supplied testRule as an innerRule to mockspresso. Rules are processed in the order they are added to the builder. So the first innerRule added will be the outer-most innerRule.

Parameters

testRule - TestRule: The testRule that should be chained inside the Mockspresso.Rule

Return
Mockspresso.Builder: this

@NotNull abstract fun innerRule(@NotNull methodRule: MethodRule): Mockspresso.Builder

Treat the resulting Mockspresso.Rule as a RuleChain, and wrap the supplied testRule as an innerRule to mockspresso. Rules are processed in the order they are added to the builder. So the first innerRule added will be the outer-most innerRule.

Parameters

methodRule - MethodRule: The methodRule that should be chained inside the Mockspresso.Rule

Return
Mockspresso.Builder: this