Testing

Creating and running tests for your code.

You can use IntelliJ IDEA to help you create and run tests across your project.

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
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.