springmockk
springmockk copied to clipboard
SpringMockK: MockBean and SpyBean, but for MockK instead of Mockito
Hi, I already stumbled over @jnizet commit https://github.com/Ninja-Squad/springmockk/commit/b6dbc1b50d4cacf72c50119fdfc5273ae5fc4677 But in our case `@SpykBean` isn't working with following configuration: * openjdk version "16.0.1" 2021-04-20 * Kotlin 1.5.21 * Spring Boot 2.5.3...
Hi, I am creating some beans programmatically via BeanDefinitionRegistryPostProcessor and postProcessBeanDefinitionRegistry. The problem I am facing is that for some tests I need to mock one of the beans created...
In `ClearMocksTestExecutionListener.clearMocks` there is iteration through a set of beans registered with `MockkCreatedBeans`. However, only `@MockKBean`s are registered with this (during `MockkPostProcessor.registerMock`), `@SpykBean`s are not. This means that `@SpykBean`s are...
Hi, in my Spring Boot + Kotlin codebase I have a `@RestController` asking for various dependencies via constructor injection. Most of these dependencies in turn ask for other dependencies themselves....
MockK has been updated to `1.13.9`, and I thought it was pretty decent timing to bring that version to springmockk as the latest version of MockK has many good patches...
I just did what it supposed to be done. Making an upgrade to Spring Boot 3.2.2 was a lot more than just replacing its version number in `build.gradle.kts`. You can...
As per https://github.com/Ninja-Squad/springmockk/issues/109
Hi @jnizet, As you stated [here](https://github.com/Ninja-Squad/springmockk/issues/104#issuecomment-1900809263) you don't have time to maintain this library and you suggested doing a fork for someone. I talked with guys from [mockk](https://github.com/mockk/mockk), @oleksiyp and...