Test Doubles: creating a Mock

5.0 02 In this series of posts about Test Doubles we’ve looked at the manual and tool-aided creation of a Dummy Object and the use of the Test Stub and the Test Spy. So it’s […]

Test Doubles: creating a Test Spy

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

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). […]

Learn Development Practices To Improve Your Test Automation Code

0.0 00 This was originally posted on testhuddle. Test automation is a prominent part of testing. To improve your test automation code, you should look at development practices. Creating clean code is a good practice […]

Assertion chaining with Hamcrest

5.0 02 In some cases we want to assert more than one thing in a test. For instance when testing a financial application with a chart of accounts that contains multiple calculated fields. Those fields […]

A guide to clear assertions with Hamcrest

5.0 01 A good practice in test automation is the use of Descriptive And Meaningful Phrases (also known as DAMP). This means that our tests clearly tell us what they do in language that is […]