-
Run this test code:
```kotlin
val suspendFunction : suspend () -> Unit = mock()
runBlocking {
suspendFunction.invoke()
}
runBlocking {
verify(suspendFunction).invoke()
}
```
…
-
Hi !
I recenlty updated to `2.25.0` to make use of `clearInlineMocks` but I end up with `NotAMockException` when I use it in combination with `MockitoJUnit.rule()`.
Eg
```
class ExampleUnitT…
-
> Hey,
>
> First thanks for reporting, in order to help us to classify issue can you make sure the following check boxes are checked ?
>
> If this is about mockito usage, the better way is to reac…
-
It looks like Mockito does currently not support mocking of top-level kotlin functions such as:
```
package com.something
fun thisIsATopLevelFunction(param:Int) {...}
```
Is supporting this p…
-
Mockito has supported applying `thenCallRealMethod()` for Java 8 default methods.
However, the feature does not work in Kotlin.
The Kotlin compiler generates separate classes for an interface with…
-
Latest stable versions of dependencies:
- adapter-rxjava2 v2.7.2
- assisted-inject-annotations-dagger2 v0.5.2
- assisted-inject-processor-dagger2 v0.5.2
- converter-moshi v2.7.2
-…
-
This issue lists Renovate updates and detected dependencies. Read the [Dependency Dashboard](https://docs.renovatebot.com/key-concepts/dashboard/) docs to learn more.
## Rate-Limited
These updates a…
-
### Describe the bug
With recent dependency updates project wide, there is an issue running Espresso tests, causing tests not to run.
### Steps To Reproduce
Run any test on an emulator, such as…
-
I'm unable to mock classes in Android Instrumentation tests, because they're recognised as final, even though they are not.
`androidTestImplementation "org.mockito:mockito-android:2.18.3"`
```
…
-
I am trying to mock a class from a kotlin library with ```org.mockito:mockito-inline:2.7.19```:
```kotlin
class TheTest {
val kit: AndroidKit = mock()
val resources: Resources = mock()
…
ghost updated
2 years ago