Issue
I have already covered with tests target method (validateScope) but Sonar is complaining about uncovered test for pointcut method. How actually this method can be tested?
src="https://i.stack.imgur.com/s4Fc8.png" alt="enter image description here" />
Solution
I'm fairly confident you are not going to be able to "test" that line as I don't think it's actually executed by anything.
There'll be some annotations you can apply or some file filter that you can apply to sonar that can exclude that file from coverage requirements.
Answered By - Michael Wiles
Answer Checked By - Timothy Miller (JavaFixing Admin)