We're sorry but this page doesn't work properly without JavaScript enabled. Please enable it to continue.
Feedback

Intro to Mocking: Why unit testing doesn't have to be so hard

Formal Metadata

Title
Intro to Mocking: Why unit testing doesn't have to be so hard
Title of Series
Part Number
29
Number of Parts
46
Author
Contributors
License
CC Attribution 3.0 Unported:
You are free to use, adapt and copy, distribute and transmit the work or content in adapted or unchanged form for any legal purpose as long as the work is attributed to the author in the manner specified by the author or licensor.
Identifiers
Publisher
Release Date
Language

Content Metadata

Subject Area
Genre
Abstract
Many developers want to write better code, but simply don't know how to write units tests for: Code that calls other code (i.e. code with dependencies) Methods that have no return value Code that throws exceptions Mocking provides a valuable tool for solving these problems. In this talk, we'll discuss the scenarios in which Mocking is useful, the strategies for addressing each of the cases above and write simple, clean unit tests using the built-in Mock library.