sreedharkesarla / spock

Automatically exported from code.google.com/p/spock
0 stars 0 forks source link

Support chaining of interaction results #235

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Example:

Queue q = Mock()
q.remove() >> 1 >>> [2, 3] >> { throw new NoSuchElementException() }

This is especially useful for mixing code results with others.

Original issue reported on code.google.com by pnied...@gmail.com on 22 Feb 2012 at 11:40

GoogleCodeExporter commented 8 years ago

Original comment by pnied...@gmail.com on 22 Feb 2012 at 12:12