I am using JUnit 4.12 and this is my current understanding of the following APIs I use frequently:
However, I am unable to get clarity on couple of things:
assumeTrue means that the test shouldn't run. It does not mean your code is broken and most runners will treat this test as "ignored"
An AssertionError means the test has failed. No more steps in that test case (the single method) will be run. It would be pointless to do so as the test has already failed
The test has failed. If you want to negate the meaning of a test there are other ways to do that, e.g. replace assertNull with assertNotNull
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With