Truth.assertThat(expected).matches(actual)
or Truth.assertThat(expected).isEqualTo(actual)
?
The docs say that the matches() method takes in a String in the form of a regex but not sure if a string literal works as well? That's what got me confused.
Aucun commentaire:
Enregistrer un commentaire