Introduction to Spring Integration 1. Introduction This article will introduce the core concepts of Spring Integration primarily through small, practical examples. Spring Integration provides a lot of powerful components that can greatly enhance the interconnectivity of systems and processes within an enterprise architecture. It embodies the some of the finest… Continue Reading spring-integration

Post a Link to the Reddit API 1. Overview In this second article of the series, we’ll build some simple functionality to post on Reddit from our application, via their API. 2. Necessary Security First – let’s get the security aspect out of the way. In order to Submit a… Continue Reading spring-security-oauth-post-to-reddit

Introduction to Hoverfly in Java 1. Overview In this article, we’ll have a look at the Hoverfly Java library – which provides an easy way of creating real API stubs/simulations. 2. Maven Dependencies To use Hoverfly, we need to add a single Maven dependency: <dependency> <groupId>io.specto</groupId> <artifactId>hoverfly-java</artifactId> <version>0.8.1</version> </dependency> The… Continue Reading hoverfly

Transforming an Empty String into an Empty Optional 1. Introduction In this quick tutorial, we’ll present different ways to transform a null or empty String into an empty Optional. Getting an empty Optional out of null is straightforward — we just use Optional.ofNullable(). But, what if we want empty Strings to work… Continue Reading java-empty-string-to-empty-optional

Custom Assertions with AssertJ   1. Overview In this tutorial, we’ll walk through creating custom AssertJ assertions; the AssertJ’s basics can be found here. Simply put, custom assertions allow creating assertions specific to our own classes, allowing our tests to better reflect the domain model. 2. Class Under Test Test… Continue Reading assertj-custom-assertion