Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Integration Test Your Spring Data JPA Repositories

DZone's Guide to

How to Integration Test Your Spring Data JPA Repositories

Free Resource

Modernize your application architectures with microservices and APIs with best practices from this free virtual summit series. Brought to you in partnership with CA Technologies.

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.

ADDITIONAL RESOURCES:

DbUnit best practices:
http://dbunit.sourceforge.net/bestpra...

Get the example application:
https://github.com/pkainulainen/sprin...

Original blog post:
http://www.petrikainulainen.net/progr...

-- YouTube description

The Integration Zone is proudly sponsored by CA Technologies. Learn from expert microservices and API presentations at the Modernizing Application Architectures Virtual Summit Series.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

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

X

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

{{ parent.tldr }}

{{ parent.urlSource.name }}