Skip to content

Conversation

@ob-stripe
Copy link
Contributor

r? @mickjermsurawong-stripe @remi-stripe
cc @stripe/api-libraries

Upgrade to JUnit 5.

Lots of noise here, sorry! The main changes are:

  • org.junit.Assert -> org.junit.jupiter.api.Assertions
  • some assertion methods like assertTrue and assertSame now take the failed assertion message as their last argument instead of their first
  • checking for thrown exception is now done via assertThrows

@mickjermsurawong-stripe
Copy link
Contributor

yay thank you @ob-stripe for the change!
Putting assertion message last makes it much more readable.
LGTM

@ob-stripe
Copy link
Contributor Author

Thanks Mick!

Some of our tests are flaky on Travis... It's nothing new, but we should look into it at some point, having to trigger rebuilds is annoying.

@ob-stripe ob-stripe merged commit 69aaa32 into integration-v9 Mar 20, 2019
@ob-stripe ob-stripe deleted the ob-upgrade-junit branch March 20, 2019 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants