forked from apache/calcite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Migrate from assertEquals to assertThat
We prefer the Hamcrest style (assertThat and Matcher) to the Junit Jupiter (Assertions.assertEquals and assertTrue). Convert * assertEquals(y, x) to assertThat(x, is(y)) * assertThat(x.toString(), is(y)) to assertThat(x, hasString(y)) * assertThat(x.length, is(y)) to assertThat(x, arrayWithSize(y)) * assertTrue(x.equals(y)) to assertThat(x, is(y)) * assertTrue(x instanceof Y) to assertThat(x, instanceOf(Y.class)) * assertThat(x, is(Arrays.asList(ys))) to assertThat(x, isListOf(ys)) * assertTrue(x == null) to assertThat(x, nullValue())
- Loading branch information
1 parent
a8802c7
commit 9985b6a
Showing
103 changed files
with
3,569 additions
and
3,462 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.