Skip to content

Remove of useless throws ... in jUnit tests. #2433

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

Conversation

DiegoKrupitza
Copy link
Contributor

A lot of jUnit tests had in the method header a throws that is useless. For example throws Exception on a method where no exception is thrown. Removing this noice will make the tests more readable.

  • You have read the Spring Data contribution guidelines.
  • You use the code formatters provided here and have them applied to your changes. Don’t submit any formatting related changes.
  • You added yourself as author in the headers of the classes you touched. Amend the date range in the Apache license header if needed. For new types, add the license header (copy from another file and set the current year only).

A lot of jUnit tests had in the method header a `throws` that is useless. For example `throws Exception` on a method where no exception is thrown. Removing this noice will make the tests more redable.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Feb 8, 2022
@schauder schauder added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Feb 9, 2022
@schauder schauder self-assigned this Feb 9, 2022
schauder pushed a commit that referenced this pull request Feb 9, 2022
A lot of jUnit tests had in the method header a `throws` that is useless. For example `throws Exception` on a method where no exception is thrown. Removing this noice will make the tests more redable.

Original pull request #2433
@schauder
Copy link
Contributor

schauder commented Feb 9, 2022

Thanks, that's merged.

@schauder schauder closed this Feb 9, 2022
schauder pushed a commit that referenced this pull request Feb 15, 2022
A lot of jUnit tests had in the method header a `throws` that is useless. For example `throws Exception` on a method where no exception is thrown. Removing this noice will make the tests more redable.

Original pull request #2433
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants