mardi 6 avril 2021

Cannot get 100% code coverage for static methods inside a final class Java

I have a class with a static method and a wrapper method and I would like to test the getName method

enter image description here

The test case I wrote was

enter image description here

As you can see the code coverage for getName is not 100%. So my question is how can I get a 100% code coverage.

Also earlier I was not getting a code coverage at all , so I followed this link http://www.notonlyanecmplace.com/make-eclemma-test-coverage-work-with-powermock/

Any help regarding this will be highly appreciated.

Aucun commentaire:

Enregistrer un commentaire