Skip to Main Content
Test-Driven Database Development: Unlocking Agility
book

Test-Driven Database Development: Unlocking Agility

by Max Guernsey III
February 2013
Intermediate to advanced content levelIntermediate to advanced
352 pages
7h 45m
English
Addison-Wesley Professional
Content preview from Test-Driven Database Development: Unlocking Agility

Chapter 10. Mocking

Useful systems tend to have multiple behaviors. If a system only has one behavior, one could argue that test-driven development is not really necessary for that system.

Test-driven development is a means by which you document the behaviors that live in a system in tests. The trick is finding a way to test any one behavior separately from the others.

In classic object-oriented environments, the techniques for doing this are well established. In a nutshell, they all boil down to this: Hide dependency behaviors behind abstractions and then create implementations of those abstractions that have constant behavior. You can also use a rich host of tools to make such processes a lot easier.

My proposal is that the technique for mocking ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Test-Driven Database Development

Test-Driven Database Development

David Wheeler

Publisher Resources

ISBN: 9780132776486Purchase book