concept helper method in category java

appears as: helper methods, helper method, helper methods
Java Testing with Spock

This is an excerpt from Manning's book Java Testing with Spock.

In such cases, a refactoring must take place so that the intention of the test becomes clear and concise. Large amounts of code should be extracted to helper methods, as shown in the next listing.

Listing 8.16. Spock test with helper methods

Here you extract the common code into a helper method. The helper method has the following positive effects:

sitemap

Unable to load book!

The book could not be loaded.

(try again in a couple of minutes)

manning.com homepage
test yourself with a liveTest