bgarrels / spock

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

Support different kinds of mock objects #10

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, all mocks are lenient. It would be nice to also have mocks that
- are strict
- have other default return values (empty collection, dummy mock, etc.)

Syntax suggestions:
SMock(), StrictMock(), Mock(strict: true), Mock("strict")
IMock(), IntelliMock(), Mock(intelligent: true), Mock("intelligent")

It might also make sense to have mocks that combine several of these
properties.

Original issue reported on code.google.com by pnied...@gmail.com on 6 Mar 2009 at 4:08

GoogleCodeExporter commented 9 years ago

Original comment by pnied...@gmail.com on 28 Oct 2009 at 12:50

GoogleCodeExporter commented 9 years ago
We now have stubs and spies, which have different default responses. We also 
have customizable default responses. Adding a strict mode would be easy.

Original comment by pnied...@gmail.com on 22 Jul 2012 at 5:02