TDD and Test Doubles (1 day)
Audience: programmers. TDD and Test Doubles is a one-day, hands-on programming workshop that primarily teaches students how to manage dependency issues when practicing test-driven development by using test doubles. You can attend the class as either a standalone one-day event or as part of the multi-class TDD Masters Series.
This class initially demonstrates the construction of test doubles in a hand-coded fashion. After students understand the rudiments of building test doubles themselves, they will go on to use a tool to assist with the creation of test doubles. In Java, the preferred tool is Mockito, although customers can request the introduction of alternate tools.
Course overview:
Testing Challenges Test Doubles Demo Exercise #1 Terminology overview: test doubles, mocks, stubs, fakes, spies Test double implementation Self shunt Exercise Dependency injection Factory-based injection Override-based injection Injection tools Exercise Mock tools Mock tool caveats Exercise Test double motivations London school Classic school School of moderation Design considerations Exercise
Pricing / Details
Site Search
Latest Changes
-
New blog entry, "Collaborative(Dare I Say Pair?) Writing"
(2012-05-03) -
New blog entry, "Bad Code Examples Promote Bad Habits"
(2012-05-03) -
New blog entry, "TDD for C++ Programmers"
(2012-05-03) -
Articles
(2012-04-27) -
New Agile in a Flash card/blog entry, "Is Your Unit Test Isolated?"
(2012-04-25) -
New blog entry, "Legacy Quadrants for Increasing Confidence Coverage"
(2012-04-04) -
Quotes From Our Students
(2012-04-02)

