Lombok
Project Lombok
Lombok is a Java library that can help you generate lots of the boiler plate code so that you don't have to end up writing them yourself. For example, getter, setter, toString, and equals method. You just have to slap an annotation onto the class and boom you will have the boiler plate stuff generated all for you.
Jacoco code coverage
If you use Lombok annotation then you will be complained about a lot about code coverage because the method isn't being called in the unit test.
You can ignore Lombok generated method by adding a lombok.config
file with the following configuration
# Adds the Lombok annotation to all of the code generated by
# Lombok so that it will be automatically excluded from coverage by jacoco.
lombok.addLombokGeneratedAnnotation = true
No Comments