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

Tidy up test "checkVersionCompatibilityNullTest" #120

Merged
merged 1 commit into from Jul 9, 2020

Conversation

stefanbirkner
Copy link
Contributor

  • Remove redundant wrapping of plugin list with ArrayList.
  • Don't replace System.out because the method under test does not write
    to System.out.
  • Explain why there is no assertion.

- Remove redundant wrapping of plugin list with ArrayList.
- Don't replace System.out because the method under test does not write
  to System.out.
- Explain why there is no assertion.

assertEquals("", output.toString());
//check passes if no exception is thrown
pm.checkVersionCompatibility(Arrays.asList(plugin1, plugin2));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My idea is to first clean up the tests and then replace JUnit 4 with JUnit Jupiter so that we can use the assertDoesNotThrow assertion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do you feel about this?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure

@timja timja added the chore Project maintenance label Jul 9, 2020
@timja timja merged commit 14d13a9 into jenkinsci:master Jul 9, 2020
@stefanbirkner stefanbirkner deleted the clean-test branch July 9, 2020 14:51
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