I was asked to work on changing a number of classes, which are the basis for the system we are working on. Each of the classes in question requires 5 to 10 different related objects, which themselves need the same number of objects.
Data is also extracted from several data sources, and the project uses EJB2, so when testing, I run without a container to pull the dependencies I need!
I am starting to overload this task. I tried unit testing with JUnit and Easymock, but as soon as I mock or ignore one thing, I think she needs more. Everything seems to be pretty closely related, so I reach level 3 or 4 with my stubs to prevent NullPointerExceptions.
Usually with this type of task I just made changes and tested when I was walking. But the shortest build cycle is about 10 minutes, and I like to code very short iterations between executions (probably because I'm not very confident in my ability to write flawless code).
Does anyone know a good strategy / workflow to get out of this quagmire?
source
share