diff --git a/docs/bugpattern/MissingFail.md b/docs/bugpattern/MissingFail.md index 83a3179ab28..67384adca06 100644 --- a/docs/bugpattern/MissingFail.md +++ b/docs/bugpattern/MissingFail.md @@ -1,4 +1,4 @@ -When testing for exceptions in junit, it is easy to forget the call to `fail()`: +When testing for exceptions in JUnit, it is easy to forget the call to `fail()`: ```java try { @@ -16,7 +16,7 @@ import static org.junit.Assert.fail; try { someOperationThatShouldThrow(); - fail() + fail(); } catch (SomeException expected) { assertThat(expected).hasMessage("Operation failed"); } @@ -81,5 +81,5 @@ characteristics are present: * A field assignment in the catch block. * A call to `assertTrue/False(boolean variable or field)` in the catch block. -* The last statement in the `try` block is an `assert*()` (that is not a noop: - `assertFalse(false)`, `assertTrue(true))` or `Mockito.verify()` call. +* The last statement in the `try` block is an `assert*()` (that is not a + noop): `assertFalse(false)`, `assertTrue(true))` or `Mockito.verify()` call.