--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriente...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriented-software+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriented-software+unsubscribe@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriented-software+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriente...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriente...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriente...@googlegroups.com.
--
---
You received this message because you are subscribed to the Google Groups "Growing Object-Oriented Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to growing-object-oriente...@googlegroups.com.
"If the tests almost mirrors code under test, its generally a test smell, it means your mocking the internals of an object not its peers. Mock objects are just a tool in your TDD toolbox, its applicable in certain contexts, so you wouldn't use it in every scenario. I wrote a blog post on some of the lessons i learnt. http://isaiahperumalla.wordpress.com/2008/04/ "
> 2. Peers / internals -- how do you know which is which when you design> your system outside-in? I guess it is some kind of "feeling" - but> could you try to describe it?>I found Identifying the peers and internals one of the keys tomodeling interactions between objects. The tests will quickly tell youif the interactions are not at the right level.for example in a previous project i worked on they had a REST servicewhich took in an Order XML and then did some processing to validatethe message, if the order was valid an Event was published to say theorder was accepted, otherwise an invalid order notification was sent out.So there were three main objects here,1) the rest service2) order validator3) Event publisherThe tests were using mock objects quite heavily, the tests wereverifying the interaction between all three objects which made thetests almost mirror the implementation. The rest service could handlethe order validation itself and not delegate this to the ordervalidator, and as long as the correct events are published the testsshould pass, but this was not the case, refactoring was a pain becauseall tests were dependent on implementationThe problem here is the order validator is an internal to the restservice implementation not a peer and theinteraction with the order validator need not be modeled since its animplementation detail of the rest service.The event publisher in this case would be considered to be a peer andinteractions between rest service and event publisher should be verified.