We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb34ed7 commit f82d93fCopy full SHA for f82d93f
documentation/src/docs/asciidoc/user-guide/migration-from-junit4.adoc
@@ -63,6 +63,10 @@ tests to JUnit Jupiter.
63
* `@Rule` and `@ClassRule` no longer exist; superseded by `@ExtendWith` and
64
`@RegisterExtension`.
65
- See also <<migrating-from-junit4-rule-support>>.
66
+* `@Test(expected = ...)` and the `ExpectedException` rule no longer exist; use
67
+ `Assertions.assertThrows(...)` instead.
68
+ See <<migrating-from-junit4-rule-support>> if you still do need to use
69
+ `ExpectedException`.
70
* Assertions and assumptions in JUnit Jupiter accept the failure message as their last
71
argument instead of the first one.
72
- See <<migrating-from-junit4-failure-message-arguments>> for details.
0 commit comments