there is a strange problem with the code coverage tool ECLEmma:
For the class MyFirstLogger
I wrote the testclass MyFirstLoggerTest
:
Please notice that I wrote in MyFirstLoggerTest
a Testmethod where I expect to get a NullPointerException, just for the purpose to go through the else if
-case in the setLogger
-method in MyFirstLogger
where logger
is null and a NullPointerexception
is thrown.
But why this branch is still yellow and not green? Is this a bug?