Growing object-oriented software based on Addison-Wesley benchmarking concerns mocking frameworks, notably JMock and Hamcrest.
From the description of the book:
Steve Freeman and Nat Price describe the processes they use, the design principles that they strive for, and some tools that help them do their job. In an advanced, well-developed example, you will learn how TDD works at several levels, using tests to control functions and the object-oriented structure of the code, and also using Mock Objects to detect and subsequently describe the relationships between objects. In addition, the book systematically addresses the challenges that development teams face with TDD β from integrating TDD into your processes to testing your most complex functions.
EDIT: I am now reading Work Effectively with Michael Feathers Legacy Code , which is pretty good. From the description of the book:
- Understanding the software change mechanism: adding features,
error correction, design improvement, performance optimization - Getting obsolete code in a test harness
- Writing tests to protect you from new problems
- This book also includes a catalog of twenty-four dependency-breaking methods that will help you work with program elements in isolation and make safer changes.
I already read it, this is one of the best programming books I've ever read (I personally think it should be called "Refactoring to Testability" - it describes the processes that make your code testable). Because the code under test is good code.
fiction Feb 16 '11 at 22:05 2011-02-16 22:05
source share