verify

    1. // MockK
    2. val mockedFile = mockk<File>()
    3. mockedFile.read()
    4. verify { mockedFile.read() }
    1. verify(mockedFile, never()).write()
    1. // MockK
    2. verify(inverse = true) { mockedFile.write() }
    1. // Mockito
    2. verify(mockedFile, atLeast(3)).read()
    3. verify(mockedFile, atLeastOnce()).write()
    1. // Mockito
    2. verify(mockedFile, atMost(3)).read()
    3. verify(mockedFile, atMostOnce()).write()
    1. // MockK
    2. verify(atMost = 3) { mockedFile.read() }
    3. verify(atMost = 1) { mockedFile.write() }
    1. // Mockito
    2. verify(mockedFile, times(3)).read()
    1. verify(exactly = 3) { mockedFile.read() }
    1. // MockK
    2. verify(timeout = 100) { mockedFile.readAsync() }
    1. // Mockito
    2. verifyNoInteractions(mockOne)
    3. verifyNoInteractions(mockTwo, mockThree)
    1. // MockK
    2. verify { mockOne wasNot Called }
    3. verify { listOf(mockTwo, mockThree) wasNot Called }
    1. // Mockito
    2. verifyNoMoreInteractions(mockOne, mockTwo)
    1. val mockedFile = mockk<File>()
    2. coVerify { mockedFile.readAsync() }