Do you guys know, how come this test passes? I'm c...
# announcements
y
Do you guys know, how come this test passes? I'm checking for the invocation of the method which is obviously not being called, but the test is green. If I turn D class into Java the test fails.
Copy code
import org.junit.Test
import org.mockito.Mockito

open class D {
  fun foo() {}
}

class DTest {
  @Test fun should_fail() {
    Mockito.verify(Mockito.mock(D::class.java)).foo() // pass
  }
}