Assertion fails on object copied using Kotlin copy
This is a problem that has been really puzzling. For some reason, equals method fails here:
val newItem = testPlaylistItem.copy(id = returnedItem.id, index = 0, updatedAt = newPlaylistFromDb.updatedAt)
assertEquals(newPlaylistFromDb, newItem)
As you can see, I'm just overwriting some properties that I know that change and I can't control (id isn't known since it's generated by the persistence and index and updatedAt are internally generated). Basically what I'm doing is ignoring them for the...