3.2. Handling tests with multiple input sets

With the fire-control system in place, you’re tasked with a more complex testing assignment. This time, the application under test is a monitor system for a nuclear reactor. It functions in a similar way to the fire monitor, but with more input sensors. The system[6] is shown in figure 3.4.

6

This system is imaginary. I’m in no way an expert on nuclear reactors. The benefits of the example will become evident in the mocking/stubbing section of the chapter.
Figure 3.4. A monitor system for a nuclear reactor

The components of the system are as follows:

  • Multiple fire sensors (input)
  • Three radiation ...

Get Java Testing with Spock now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.