diff --git a/documentation/src/docs/asciidoc/user-guide/migration-from-junit4.adoc b/documentation/src/docs/asciidoc/user-guide/migration-from-junit4.adoc index 09d351fbfec6..1bea652ce7b1 100644 --- a/documentation/src/docs/asciidoc/user-guide/migration-from-junit4.adoc +++ b/documentation/src/docs/asciidoc/user-guide/migration-from-junit4.adoc @@ -63,6 +63,10 @@ tests to JUnit Jupiter. * `@Rule` and `@ClassRule` no longer exist; superseded by `@ExtendWith` and `@RegisterExtension`. - See also <>. +* `@Test(expected = ...)` and the `ExpectedException` rule no longer exist; use + `Assertions.assertThrows(...)` instead. + See <> if you still do need to use + `ExpectedException`. * Assertions and assumptions in JUnit Jupiter accept the failure message as their last argument instead of the first one. - See <> for details.