concept helper method in category java
appears as: helper methods, helper method, helper methods

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.
![]()
Here you extract the common code into a helper method. The helper method has the following positive effects: