Over a million developers have joined DZone.

How to Integration Test Your Spring Data JPA Repositories

DZone's Guide to

How to Integration Test Your Spring Data JPA Repositories

· Integration Zone ·
Free Resource

SnapLogic is the leading self-service enterprise-grade integration platform. Download the 2018 GartnerMagic Quadrant for Enterprise iPaaS or play around on the platform, risk free, for 30 days.

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

With SnapLogic’s integration platform you can save millions of dollars, increase integrator productivity by 5X, and reduce integration time to value by 90%. Sign up for our risk-free 30-day trial!


Opinions expressed by DZone contributors are their own.

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

{{ parent.tldr }}

{{ parent.urlSource.name }}