
I run code coverage for the code in eclipse by setting the jvm paramter : -ea, but the statements still show yellow color. and test2 show red, why?
what’s more, when I use -ea, if the system assertions(-esa) be enable? It seems that when I use -esa, -ea can’t work.
You never ran it with a null key value, and hence the assertion path was never exercised.
(This point came to me because I ran into the identical problem in about 1980.)