isEqualToIgnoringGivenProperties
fun <T : Any> Assert<T>.isEqualToIgnoringGivenProperties(other: T, vararg properties: KProperty1<T, Any?>)
Returns an assert that compares all accessible properties except the given properties on the calling class.
Parameters
other
Other value to compare to
properties
properties of the type with which been ignored
assertThat(person).isEqualToIgnoringGivenProperties(other, Person::name, Person::age)
Content copied to clipboard