... I relaxed the rule to allow a boolean return so that certain logic could be put in place. Like a visitor that needs to stop visiting at some point. ie: for...
With regards to making more classes, how do you start managing them? Do you have a certain pattern with your namespaces? Thanks, Franz ... -- Franz Allan...
... You're right. It's just a working definition to get us through the book. Other people have come up with good bigger-picture definitions. S. Steve Freeman ...
... Steve, I'd like to take you up on that offer at Agile 2009. ... I'd meant to keep up with that book as you wrote it. So little time. - George -- ... *...
I have no doubt that DRY is violated in this code -- it's legacy code that doesn't have tests around it, and is a bit....lacking in the good design department....
... that sounds like a beer... ... especially for us... S. Steve Freeman http://www.mockobjects.com Winner of the Agile Alliance Gordon Pask award 2006...
... Yes, and this could turn into a long discussion of its own, but here is the nutshell version. (For example code I sometimes dont worry about this) ...
Anyone got any thoughts on the usefulness of deploying software with the TDD Design Verification Examples? A good thing, a bad thing; or indifferent? -- View...
... That's not what I meant. I wouldn't mock out the code called by the test. I leave the system test failing until the system actually implements what is...
Whether you believe you're a "star" in the agile community or not, we're still looking for a few more great programmers to compete in the Agile 2009...
Hi there (on Behalf of Chris Matts - who're not part of every mailing list in existence) Each year the Agile 200x conference grows bigger. More people join the...
Thanks, How about when you have a class called ModelA, then you have a visitor for it ModelAVisitor, and you have a specific command action which it uses ...
Good day, It's currently the best practice (AFAIK) to put your test in the same namespace as the Class you are testing, or as close as possible. Also, it is ...
If you think about this for awhile, there is no clear answer. Just use whatever suits your situation. I'm you'll get 100 different answers to this from 100 ppl...
Olof Bjarnason
olof.bjarnason@...
Jul 14, 2009 4:42 pm
31403
I have given up on visitors, they just make my code too ugly. It seems too complicated to make 1) methods that allow visitors 2) visitors that visit certain...
... You lost me. If the test is in the same namespace as your class, how is it separate from you class? Also, I'm not sure I agree that best practice...
... I usually use the following rules of thumb: 1) if it's a one-off class that I'm using only to test the current class (i.e., GroundBreakingServiceImpl in...
I've used NMock2 in an env where the team was stuck on VS 2005 (yes sad). I think I would like Moq, but a recent article from Christian Gruber: Make Fake/Stub...
Maybe a visitors package could help, ie: com.jamesladdcode.project.business.customer com.jamesladdcode.project.implementation.customer.visitor This shows the...
Pardon the ambiguity of my statement. I mean although the application Class and the test Class are both in the same namespace ( i.e. GroundBreakingServiceImpl...
Hi David, I see. My current approach is now something like that ( if it's a one time thing, i create it as an inner class. But if it's something reusable, I ...
... I haven't encountered such problems so far - I think largely because I usually work on non-XP teams where we have if not outright "code ownership" then at...
... Rule #0 - Test external behavior and not internal structure. Lior Friedman Blog - http://imistaken.blogspot.com <http://imistaken.blogspot.com/> [Non-text...
... I don't get it. I think that most mocking framework are doing this by default. (at least those I'm more familiar with) Some (hint hint) even took that...