[No Audio]
In this video, we're going to see how we can fail
tests explicitly using JUnits Assert.Fail mechanism.
So let's pick up now where we left off.
So if I remove those,
[No Audio]
and we'll just tell you about another way of being
able to fail tests as well,
and that's with the assert.
[No Audio]
fail method.
So if you purposefully want to fail a test, then
you can use this method to do it as well.
And you'd usually give a message as well.
[No Audio]
So again right click Run.
[No Audio]
And now we can see we get this assertion error here.
So there it is.
That's how you can explicitly fail the test in JUnit.