Is there a reason why JUNIT is passing tests I'm clearly not supposed to be passing?

Viewed 37

I'm passing tests I'm clearly not supposed to be passing and I'm not quite sure why this is. Sometimes JUNIT seems to be frozen and just repeats one test output; I would like to know why that is the case enter image description here

1 Answers

You don't have any assertion in the test. Without any assertions, the test will pass.

The one you highlighted, if you executed it as it is, should not even compile.

Related