Quantcast
Viewing all articles
Browse latest Browse all 147

Using Spring Boot @SpyBean

Today, a colleague asked me to help him write a REST API integration test. We use Spring’s MockMvc API to test the REST API. The application uses MongoDB with Spring Data MongoDB. The application uses both MongoTemplate and Mongo based repositories for working with MongoDB. To make tests work independent of MongoDB, we mock Spring … Continue reading Using Spring Boot @SpyBean Image may be NSFW.
Clik here to view.

Viewing all articles
Browse latest Browse all 147

Trending Articles