Why I Can’t Get Focused (It’s a double entendre)
I can’t get focused today. My mind is a torrent of activity completely unrelated to my task at hand, so I am writing this to get these thoughts out so I can get back to work.I got a call from a recruiter the other day trying to get me to come inte…
Don’t Mock Concrete Classes
(They have thin skin) I have been reading G.O.O.S. and honestly, much of it has been just a reiteration. Until chapter 20, that is. I get to the section Don’t Mock Concrete Classes, and it clicks. Mocking concrete classes used to be my bread and b…
Actionscript Unit Testing
I am trying to test a project that is huge and many of the “classes” are only defined as linkages from the main monster fla. I followed ASUnit Tutorial and got it to work with their simple examples. But when I went to test a factory and child clas…
Active Record Pattern Testing
One of the most interesting problems I have had to face recently was in testing Active Record objects representing entities in a database. In this instance, the classes were legacy, and many were hundreds of methods long. Testing these classes was…