https://kotlinlang.org logo
#mockk
Title
# mockk
k

Karolis

07/15/2019, 8:59 AM
Copy code
val slot1 = slot<InvoiceLateFeeEntry>()
        verify {
            repo.save(capture(slot1))
        }
        val slot2 = slot<InvoiceLateFeeEntry>()
        verify {
            repo.save(capture(slot2))
        }
slot1 == slot2, yet
repo.save()
was walled with different arguments
Found out that I need to do verification in `verifyOrder`:
Copy code
verifyOrder {
    repo.save(capture(slot1))
    repo.save(capture(slot2))
}