-
I just cloned the repo and runed `./gradlew test` and the project failed with lots of errors
```shell
w: /Users/brais/projects/mockito-kotlin/mockito-kotlin/src/main/kotlin/com/nhaarman/mockitokot…
-
* Reproducible step
```
$ git clone https://github.com/ganadist/minimal-reproducible-example -b k2-spy-lambda k2
Cloning into 'k2'...
$ cd k2
$ git checkout HEAD~1
# perform unittest with ko…
-
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.
## Config Migration Needed
- […
-
# Mockito and non-null types in Kotlin | Damir's Corner
[https://www.damirscorner.com/blog/posts/20221223-MockitoAndNonNullTypesInKotlin.html](https://www.damirscorner.com/blog/posts/20221223-Mocki…
-
I want to mock this function:
```
class MyClass() {
fun myFunction(argument: UShort): ByteArray {
....
}
}
```
```
var mocked: MyClass = mock(MyClass::class.java)
doReturn(byteAr…
-
Hi,
I have a problem which seems to be very similar to this one https://github.com/mockito/mockito/issues/1346 but it is happening when I run test with `@TestInstance(TestInstance.Lifecycle.PER_CL…
-
When using Roboletric as test runner, mocking any Kotlin's function interfaces (`Function`, `Function1`, `Function2` etc.) will crash the test with ClassCastException.
For example this code:
```…
-
Hi,
After switching kotlin's api/language from 1.4 to 1.5, the following code:
```
@Test
fun test() {
val deferredSupplier = spy(Supplier { Flux.empty() })
Flux.defer(d…
-
@nhaarman , the area that I was trying to test was like this
```
val testArg = mock Unit>()
val result = someClass.doSomething(testArg)
verify(testArg).invoke(any())
```
And the error comes …
-
I've recently started using Kotlin and am loving it so far. I've however had to use some workarounds for Mockito matchers, since Kotlin doesn't like null -- a great thing IMO. See http://stackoverflow…