AssertJ Exception Assertions 1. Overview In this quick tutorial, we’ll have a look at AssertJ’s exception-dedicated assertions. 2. Without AssertJ In order to test if an exception was thrown, we’d need to catch the exception and then perform assertions: try { // … } catch (Exception e) { // assertions… Continue Reading assertj-exception-assertion

OAuth2 for a Spring REST API – Handle the Refresh Token in AngularJS 1. Overview In this tutorial we’ll continue exploring the OAuth password flow that we started putting together in more our previous article and we’ll focus on how to handle the Refresh Token in an AngularJS app. 2.… Continue Reading spring-security-oauth2-refresh-token-angular-js

Concurrency with LMAX Disruptor – An Introduction Java Java Concurrency 1. Overview This article introduces the LMAX Disruptor and talks about how it helps to achieve software concurrency with low latency. We will also see a basic usage of the Disruptor library. 2. What Is a Disruptor? Disruptor is an… Continue Reading lmax-disruptor-concurrency