hamkrest

equalTo

A simple matcher that asserts equality. Works with null just like Kotlin’s == operator.

Assertion

assertThat("one", equalTo("two"))

Test Output

expected: a value that is equal to "two"
but was: "one"