Apache Commons Collections MapUtils 1. Introduction MapUtils is one of the tools available in the Apache Commons Collections project. Simply put, it provides utility methods and decorators to work with java.util.Map and java.util.SortedMap instances. 2. Setup Let’s start by adding the dependency: <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-collections4</artifactId> <version>4.1</version> </dependency> 3. Utility Methods… Continue Reading apache-commons-map-utils

Testing Netty with EmbeddedChannel 1. Introduction In this article, we’ll see how to use EmbeddedChannel to test the functionality of our inbound and outbound channel handlers. Netty is a very versatile framework for writing high-performance asynchronous applications. Unit testing such applications can be tricky without the right tools. Thankfully the framework provides… Continue Reading testing-netty-embedded-channel

Microsoft Word Processing in Java with Apache POI Data 1. Overview Apache POI is a Java library for working with the various file formats based on the Office Open XML standards (OOXML) and Microsoft’s OLE 2 Compound Document format (OLE2). This tutorial focuses on the support of Apache POI for… Continue Reading java-microsoft-word-with-apache-poi