Why is active code generation important?
The fundamental difference between MockDoclet and MockMaker is that MockDoclet is designed to be used as an active code generator and MockMaker as a passive code generator. Passive code generators are wizard-like code generators that developers typically generate code once (with certain options) and then from then onwards treat the file as any other source file. It is the developer’s responsibility to ensure it is maintained as the project evolves. Of course, generated code is generally not as clean and maintainable as developers would like them to be and can end up causing maintenance nightmares (MockModified syndrome). Active code generators generate disposable code. The idea is that you have an input configuration that is easily maintainable and whenever it changes all the generated code is regenerated, overwriting previous versions. This is much simpler to maintain as the developer never actually modifies (or even looks at) the generated code. Excellent coverage of code generators,