Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

io.mockative.NoSuchMockException: Kotlin 2.0.0-RC2 #109

Open
Clemodd opened this issue May 3, 2024 · 1 comment
Open

io.mockative.NoSuchMockException: Kotlin 2.0.0-RC2 #109

Clemodd opened this issue May 3, 2024 · 1 comment

Comments

@Clemodd
Copy link

Clemodd commented May 3, 2024

My test is actually working with old kotlin version, but now, I have this error :

A mock for the type SplashScreenRepository was not generated.

Make sure the property holding the mock is annotated with @Mock:

    @Mock
    private val myMock = mock(classOf<SplashScreenRepository>())

io.mockative.NoSuchMockException: A mock for the type SplashScreenRepository was not generated.

Make sure the property holding the mock is annotated with @Mock:

    @Mock
    private val myMock = mock(classOf<SplashScreenRepository>())

Is it the fault of version 2.0.0-RC2?

@riQQ
Copy link
Contributor

riQQ commented May 4, 2024

See also #74

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants