Trisha Gee

Lead Java Advocate

rcg-thumbnail
Mocks (part of tutorial)
Mocks are a useful testing tool. We can provide "empty" objects, so we don't have to initialise the whole application to test a section, and we can use mocks to check our code is making the calls we expect.
rcg-thumbnail
Postfix Completion (tip)
Postfix completion allows you to keep typing forwards, it minimises the amount of time you spend moving the cursor around while you're coding.
rcg-thumbnail
Stubs (part of tutorial)
Stub objects allow us to state from a test what values get injected into our application code. They can provide simple interfaces, so we don't have to initialise the whole application to test a section.
rcg-thumbnail
With (part of tutorial)
Sometimes we want to check more than one value on an object. We can use `with` to do this.