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

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -