java - Why assert(false) give me a green bar when I perform this simple unit test method? -
into junit test cla have extremelly simple method:
public void stupidtest() { assert(false); }
the strange thing performing method obtain green bar , not red 1 expected (i think assert(true) have give me green bar , assert(false) red bar).
why? missing?
assert
java keyword: junit doesn't care (and considered jvm if run -ea
option).
if want run junit test, should use asserttrue(false);
junit method. give red bar.
Comments
Post a Comment