There are code snippets in this Spock wiki page that involve double right arrow operators (>>). For example:
setup:
subscriber.isAlive() >> true
So, what does the >> operator mean in this case? Thank you very much.
The right-shift (>>
) operator defines the return value or behavior of a stubbed method. You can find more information under Stubbing in the reference documentation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With