Guide to ReflectionTestUtils for Unit Testing Spring Testing 1. Introduction ReflectionTestUtils is a part of Spring Test Context framework. It is a collection for reflection-based utility methods used in a unit, and integration testing scenarios to set the non-public fields, invoke non-public methods, and inject dependencies. In this tutorial, we’ll take… Continue Reading spring-reflection-test-utils

Multiple Buckets and Spatial View Queries in Spring Data Couchbase 1. Introduction In this third tutorial on Spring Data Couchbase, we demonstrate the configuration required to support a Couchbase data model that spans multiple buckets, and we introduce the use of Spatial views for querying multi-dimensional data. 2. Data Model… Continue Reading spring-data-couchbase-buckets-and-spatial-view-queries

Bootstrap a Web Application with Spring 5 1. Overview The tutorial illustrates how to Bootstrap a Web Application with Spring. We’ll look into the Spring Boot solution for bootstrapping the application and also see a non-Spring Boot approach. We’ll primarily use Java configuration, but also have a look at their… Continue Reading bootstraping-a-web-application-with-spring-and-java-based-configuration

A Guide to the Java ExecutorService 1. Overview ExecutorService is a framework provided by the JDK which simplifies the execution of tasks in asynchronous mode. Generally speaking, ExecutorService automatically provides a pool of threads and API for assigning tasks to it. Further reading: Guide to the Fork/Join Framework in Java… Continue Reading java-executor-service-tutorial