# Introducing springmock

DevFeed: [Introducing springmock](<https://devfeed.tech/articles/introducing-springmock-27275.md>)

Original publisher: [Read original article](<https://blog.pchudzik.com/201707/springmock-v1/>)

Published: 2017-07-25T00:00:00Z

Content type: article

Language: en

Sources: [Paweł Chudzik](<https://devfeed.tech/sources/pawe-chudzik.md>)

Topics: [Library](<https://devfeed.tech/topics/library.md>), [Mocking](<https://devfeed.tech/topics/mocking.md>)

Tags: [library](<https://devfeed.tech/tags/library.md>), [mocking](<https://devfeed.tech/tags/mocking.md>), [mockito](<https://devfeed.tech/tags/mockito.md>), [spring](<https://devfeed.tech/tags/spring.md>), [springboot](<https://devfeed.tech/tags/springboot.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

The author introduces springmock, a library that injects Spock mocks into Spock Specification classes in Spring integration tests. It supports Spock and Mockito as mock and spy providers and reduces the boilerplate needed for mock injection.

## Source excerpt

I've been using springboot for some time now, but there was that one thing that bugged me a lot. While writing integration tests with mocks you are forced to use mockito as the mocking library. That's great and easy to understand if you are not using spock. The problem is that in spock there are better ways to mock stuff... Read more