Over a million developers have joined DZone.

How to Integration Test Your Spring Data JPA Repositories

Learn how API management supports better integration in Achieving Enterprise Agility with Microservices and API Management, brought to you in partnership with 3scale

Not sure how to do integration testing in Spring Data?  This short video under 20 minutes is a great screencast to help you maintain integration testing practices in this awesome framework.

Spring Data JPA makes the creation of JPA repositories extremely easy because in most cases we only have to create a special repository interface.

The big question is:

"How can we write tests for our repositories because after all, they are just interfaces?"

This video answers to that question and describes how we can write integration tests for Spring Data JPA repositories.


DbUnit best practices:

Get the example application:

Original blog post:

-- YouTube description

Unleash the power of your APIs with future-proof API management - Create your account and start your free trial today, brought to you in partnership with 3scale.


Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}