Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@copybara-service
Copy link
Contributor

Use assertThat(x).isInstanceOf(y) instead of assertEquals(y, x.getClass()).

A Class-equality assertion is better in some cases, but often it's not. And of course we like Truth. I've tried to migrate all the cases in which isInstanceOf makes sense.

RELNOTES=n/a

…Class())`.

A `Class`-equality assertion is better in some cases, but often it's not. And of course we like Truth. I've tried to migrate all the cases in which `isInstanceOf` makes sense.

RELNOTES=n/a
PiperOrigin-RevId: 843340055
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant