Test Doubles: creating a Test Stub

5.0 01 In this series of posts about Test Doubles we’ve looked at the manual and tool-aided creation of a dummy object. Now it’s time to discuss the creation of a stub. The stub is […]

Test Doubles: creating a Dummy Object using a mocking framework

5.0 01 In this series of posts about Test Doubles we’ll look at five examples. In the previous post we looked the manual creation of a dummy object. The conclusion was that the manual approach […]

Test Doubles: creating a Dummy Object manually

5.0 02 In this series of posts about Test Doubles we’ll look at five examples. The Dummy Object is the first and most straightforward. Its definition is: A placeholder object that is passed to the […]

Test Doubles for the win

Test Doubles

5.0 03 When writing unit or contract tests you encounter situations in which you need mock things. Given you want to test a method in Class A that uses a collaborator (class / interface B). […]