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

Use assertThrows for checking exceptions #121

Merged
merged 1 commit into from Jul 9, 2020

Conversation

stefanbirkner
Copy link
Contributor

assertThrows is more precise than @test(expected=...) because it checks
that a specific statement throws the exception.

assertThrows is more precise than @test(expected=...) because it checks
that a specific statement throws the exception.
@timja timja added the chore Project maintenance label Jul 9, 2020
@timja timja merged commit 6a646af into jenkinsci:master Jul 9, 2020
@stefanbirkner stefanbirkner deleted the check-exceptions branch July 9, 2020 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Project maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants