All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.misk.mockito.MockitoExtensions.kt Maven / Gradle / Ivy

There is a newer version: 2024.09.17.200749-4708422
Show newest version
package misk.mockito

import org.mockito.ArgumentCaptor
import org.mockito.Mockito
import org.mockito.Mockito.`when`
import org.mockito.stubbing.OngoingStubbing

object Mockito {
  inline fun  mock(): T = Mockito.mock(T::class.java)

  inline fun  whenever(t: T): OngoingStubbing = `when`(t)

  inline fun  captor(): ArgumentCaptor = ArgumentCaptor.forClass(T::class.java)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy