I want to focus on the point several people have made about the ability
to test all the classes by using only public interfaces.
I agree!
If the behavior of...
... So you /did refactoring/, but didn't use (known or documented) /refactorings/ ;-) - Lasse - This message is for the designated recipient only and may...
... Well, You are right. But after I added support for user-definable compare objects, this strutcure started smelling a little bit more, so I did create the...
Shamefully yes.
But hey im new to this whole XP/TDD/refacturing thing
It takes some time to digest ;)
Lior ... Sent: Tuesday, June 01, 2004 10:29 AM
To:...
... What is wrong with using friendship rather than yucky #defines? Can friendship be considered to be pollution? I haven't seen any reasons on this thread...
... Me too. At least relatively speaking. I do non-trivial refactorings (something you can't launch from Eclipse's refactoring menu) very rarely and when I do,...
... This story sounds to me like something going wrong in the design. But I'd have to see a real example to be sure. A complicated constructor troubles me, for...
... If we know that A works correctly, we're not dealing with the questioner's case, which is "what if you need to test a private method". Ron Jeffries ...
... OK, a recent example: A class to manage a log split over a group of small files. Test one: make sure the directory containing the logs is created. Test...
... An observation in passing: I usually just go one test at a time in TDD. Sometimes I'll keep a list, but often I do not. ... Observation: It might be fun to...
... I could imagine in this case that I might just test the private methods, perhaps using the "internal" accessibility level. However, these three actions...
... Yes indeed, this part was refactored out to a file manager class. Either way, the first three steps justified their own tests. Excuse my ignorance, but...
Thanks for the responses, Ron, Michael and Phlip. Let me try to summarize your points (and my replies) below. 1. Ron and Michael mention high-level or granular...
... Probably not. On the other hand, you could create a mock A and use *that* as part of the B tests. -- Edmund Schweppe -- schweppe@... --...
Edmund Schweppe
schweppe@...
Jun 1, 2004 11:33 am
92722
Hello Lior, Tuesday, June 1, 2004, 3:03:58 AM, you wrote: LF> I want to focus on the point several people have made about the ability LF> to test all the...
... If the change is good, and the ubiquitous language changes to match the good change, then the ubiquitous language and the metaphor once again will be...
Edmund Schweppe
schweppe@...
Jun 1, 2004 11:47 am
92724
... Its a holiday, so I'm not colocated with my library, but I seem to recall Kent Beck addresses this very issue in Test-Driven Design. Probably also...
Douglas Philips
dgou@...
Jun 1, 2004 11:52 am
92725
... Yes, working with legacy is different. There it's largely "do what you can". Dave...
... Come to the dark side Mike (i.e. put down that sissy-man Bud and hoist a Guiness) ... I agree fully. ... To me, pollution means introducing a dependancy,...
... .NET accessibility level allowing members of the same "namespace" access to the element, but no one from outside. A bit stronger than "friend" in that you...
I have set dhui_2002 to "No Email" because I was getting bounces referring to spam, from what appears to be its base account, on all my postings to the list. I...
... The Java equivalent is the "package" level of protection -- indicated by *not* putting 'public', 'private' or 'protected' in front of your method (or...
... I would hesitate to add a getter solely for a test. I'd prefer to add a query method to check for side-effects. And by pollution of code for testing.. I'm...
... Your mention of the software logging technique reminded me of something I've been thinking about lately - I used a group of testing techniques for embedded...
Nancy Van Schooenderw...
vanschoo@...
Jun 1, 2004 6:19 pm
92734
... From: "Jeff Grigg" <jeffgrigg@...> To: <extremeprogramming@yahoogroups.com> Sent: Tuesday, June 01, 2004 9:05 AM Subject: Re: VS: [XP] Test Driven...
... Maybe it's a bad habit, but I sometimes test assertion error exceptions into the code, so a 'fail()' method in the 'try' block will, in some cases, get...