I am trying to write some JUnits for my application, I believe I have got around 80% code coverage, but when i run the tests my report looks as follows;
This is giving me a code coverage result of 52% which is not idea.
Is there an alternative way to write the methods in which an exception is expected so as to maintain my coverage score?
Thanks