Home > Software engineering >  Jacoco: Testing @Data annotation in Unit Testing?
Jacoco: Testing @Data annotation in Unit Testing?

Time:04-27

After running test and generating coverage report via Jacoco, I realized that there is a static method where a @Data annotation is used and the line of it is marked yellow indicating that it is not tested.

Report

So, is it normal or how can I test that line?

CodePudding user response:

Seems opinion based, but in my opinion there is no point for testing generated code from an external dependency. I would do noting about it and move on.

  • Related