Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Test annotation Javadoc to mention ExpectedException #806

Closed
kcooney opened this issue Jan 24, 2014 · 0 comments
Closed

Update Test annotation Javadoc to mention ExpectedException #806

kcooney opened this issue Jan 24, 2014 · 0 comments

Comments

@kcooney
Copy link
Member

kcooney commented Jan 24, 2014

It's generally agreed that using the expected attribute of the @Test annotation can be problematic. At the very least, it's very limiting. We should update the @Test Javadoc to mention ExpectedException as the preferred alternative.

See #801 for details

stefanbirkner added a commit to stefanbirkner/junit that referenced this issue Jan 29, 2014
The ExpectedException can be used for better exception testing. The
reference should guide the reader to its documentation.
stefanbirkner added a commit to stefanbirkner/junit that referenced this issue Jan 30, 2014
The ExpectedException can be used for better exception testing. The
reference should guide the reader to its documentation.
@kcooney kcooney closed this as completed in 84dcb64 Feb 4, 2014
kcooney added a commit that referenced this issue Feb 4, 2014
Add reference to ExpectedException. Fixes #806.
stefanbirkner added a commit to stefanbirkner/junit that referenced this issue Jan 1, 2020
Provide information about alternatives to the expected parameter which
can be used to overcome the limitations of expected.

This is an improvement for JUnit 4.13 to the fix for junit-team#806
(84dcb64).
marcphilipp pushed a commit that referenced this issue Oct 11, 2020
Provide information about alternatives to the expected parameter which
can be used to overcome the limitations of expected.

This is an improvement for JUnit 4.13 to the fix for #806
(84dcb64).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant