11 June 2009
Using Mocks and Tests to Design Role-Based Objects
Isaiah Perumalla has had a paper published by MSDN. They trimmed it a bit, so we're hosting the original here.
Labels: news, publications
21 May 2009
Another update to the book
Labels: book, growing object-oriented software, news
02 April 2009
Book. More and more
Labels: book, growing object-oriented software
27 March 2009
Book. More chapters posted
Labels: book, growing object-oriented software, news
13 December 2008
googlemock
Google have just announced googlemock, their C++ mocking framework. More details at http://code.google.com/p/googlemock/. It looks like they've done a lot of work.
Labels: mocks in action, news
27 November 2008
Only mock types you own (revisited)
There was a brief discussion on the JMock mailing list recently where we helped out a new user. In the process, we noticed that he was mocking Java Set, which we tend to avoid, because it's not a type that we own—it's not in the domain of the problem we're trying to solve. The way I put it was,
We see a lot of people using, for example,List<House>when what they actually mean isStreet. We try to use types we own that represent concepts in the domain, rather than built-in or library types which we keep for implementing these domain types. If the domain types are defined in terms of roles, then they're often appropriate for mocking.
Isiah followed up with an old post of his own.
I think we have a satisfied customer:
Thank you Steve and Isiah, I think I just took a large step in the world of TDD.
It's nice when that happens...
Labels: design, explanation
More example, reworking the process
Labels: book, growing object-oriented software
© The authors
