Skip to content

Prepare for JUnit 4.13 - #7468

Merged
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:junit-4.13-prep
Sep 28, 2020
Merged

Prepare for JUnit 4.13#7468
ejona86 merged 1 commit into
grpc:masterfrom
ejona86:junit-4.13-prep

Conversation

@ejona86

@ejona86 ejona86 commented Sep 28, 2020

Copy link
Copy Markdown
Member

It deprecates ExpectedException and Assert.assertThat(T, org.hamcrest.Matcher).
Without Java 8 we don't want to migrate away from ExpectedException at
this time. We tend to prefer Truth over Hamcrest, so I swapped the one
instance of Assert.assertThat() to use Truth. With this change we get a
warning-less build with JUnit 4.13. We don't yet upgrade because we
still need to support JUnit 4.12 for some use-cases, but will be able to
upgrade to 4.13 soon when they upgrade.

CC @elharo

@ejona86

ejona86 commented Sep 28, 2020

Copy link
Copy Markdown
Member Author

I see the merge conflict, I'll deal with it soon. But wanted to send this now.

It deprecates ExpectedException and Assert.assertThat(T, org.hamcrest.Matcher).
Without Java 8 we don't want to migrate away from ExpectedException at
this time. We tend to prefer Truth over Hamcrest, so I swapped the one
instance of Assert.assertThat() to use Truth. With this change we get a
warning-less build with JUnit 4.13. We don't yet upgrade because we
still need to support JUnit 4.12 for some use-cases, but will be able to
upgrade to 4.13 soon when they upgrade.
@ejona86
ejona86 merged commit 4c1bab9 into grpc:master Sep 28, 2020
@ejona86
ejona86 deleted the junit-4.13-prep branch September 28, 2020 22:07
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants