Thomas Uhrig 1/6/2023

Mocking repos with Dynamic Proxies

Read Original

This article discusses a novel method for testing Spring Data repositories by using Dynamic Proxies to create in-memory implementations, avoiding the need for Docker, H2 databases, or Mockito. It explains how Spring Data works, the concept of Dynamic Proxies, and compares this approach to traditional mocking and in-memory database strategies for Java/Kotlin development.

Mocking repos with Dynamic Proxies

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
ServiceNow and Microsoft Copilot
Marius Sandbu 1 votes
2
The Learning Loop and LLMs
Martin Fowler 1 votes