mercredi 18 novembre 2020

Test Lombok's @UtilityClass auto-generated code

I have a class that's annotated with @UtilityClass like this

@UtilityClass
public class myUtilClass {
...
}

JaCoCo doesn't give me full coverage for this class because of the auto-generated code created by the annotation @UtilityClass . Ideally, I do not want to change any config files to ignore auto-gen code. How can this code be tested?

Aucun commentaire:

Enregistrer un commentaire