New mock objects framework

Denis Kudriashov dionisiydk at gmail.com
Mon Aug 20 09:32:29 UTC 2007


I realize new smalltalk mock objects framework named BehaviorMockup with
SSpec functionality.
There is Squeak (http://www.squeaksource.com/BehaviorMockup.html) and VW
versions (cincom public repository)

Simplest language for behavior specfications:

[:mock | mock someMessage] should strictly satisfy: [:mock | mock
someMessage willReturn: 'some']

or

[:mock | mock someMessage] should lenient satisfy: [:mock | mock someMessage
willReturn: 'some']

SSpec functionality:

   - 5 should equals: 6
   - and ...

For more detailes see Wiki on SqueakSource and many acceptance tests in
package

Best regards,
Denis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070820/e08dd4be/attachment.htm


More information about the Squeak-dev mailing list