Introduction to Netty
1. Introduction In this article, we’re going to take a look at Netty — an asynchronous event-driven network application framework. The main purpose of Netty is building high-performance protocol...
View ArticleSerenity BDD and Screenplay
1. Overview In this article, we’ll have a quick look at the Screenplay Pattern in Serenity BDD. We suggest you read the basics of Serenity BDD first before reading this one. Also, the article on...
View ArticleJava Web Weekly, Issue 180
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Immutable Collections in Java 9 [javaspecialists.eu] Java 9 will feature a new way of defining truly immutable...
View ArticleTesting with JGoTesting
1. Overview JGoTesting is a JUnit-compatible testing framework inspired by Go’s testing package. In this article, we’ll explore the key features of the JGoTesting framework and implement examples to...
View ArticleHow to Get All Dates Between Two Dates?
1. Overview The new Time API introduced in Java 8 made it possible to process date and time without using external libraries. In this short tutorial, we will take a look at how getting all dates...
View ArticleJava EE Session Beans
1. Introduction Enterprise Session Beans can be broadly classified into: Stateless Session Beans Stateful Session Beans In this quick article, we are going to discuss these two main types of session...
View ArticleExample of Hill Climbing Algorithm
1. Overview In this tutorial, we’ll show the Hill-Climbing algorithm and its implementation. We’ll also look at its benefits and shortcomings. Before directly jumping into it, let’s discuss...
View ArticleBootstrap a Simple Application using Spring Boot
1. Overview Spring Boot is a significant addition to the Spring ecosystem. In this tutorial, we’ll discuss how to bootstrap a simple application using Spring Boot. This tutorial is a starting point...
View ArticleTop Spring Framework Interview Questions
1. Introduction In this article, we’re going to look at some of the most common Spring-related questions that might pop up during a job interview. 2. Spring Core Q1. What is Spring Framework? Spring...
View ArticleHow to Find all Getters Returning Null
1. Overview In this quick article, we’ll use the Java 8 Stream API and the Introspector class – to invoke all getters found in a POJO. We will create a stream of getters, inspect return values and see...
View ArticleHow to Get All Spring-Managed Beans?
1. Overview In this article, we’ll explore different techniques for displaying all Spring-managed beans withing the container. 2. The IoC Container A bean is the foundation of a Spring-managed...
View ArticleJava Web Weekly, Issue 181
Lots of interesting writeups on Java 9 this week. Here we go… 1. Spring and Java >> Cleaner Parameterized Tests With JUnit 5 [blog.codeleak.pl] JUnit 5 brings many new exciting features – one of...
View ArticleIntroduction to Liquibase Rollback
1. Overview In our previous article, we showed Liquibase as a tool for managing database schemas and data. In this article, we’re going to look more into the rollback feature – and how we can undo a...
View ArticleConverting String to Stream of chars
1. Overview Java 8 introduced the Stream API, with functional-like operations for processing sequences. If you want to read more about it, have a look at this article. In this quick article, we’ll see...
View ArticleChanging the Order in a Sum Operation Can Produce Different Results?
1. Overview In this quick article, we’re going to have a look at why changing the sum order returns a different result. 2. Problem When we look at the following code, we can easily predict the correct...
View ArticleIntroduction to Quartz
1. Overview Quartz is an open source job-scheduling framework written entirely in Java and designed for use in both J2SE and J2EE applications. It offers great flexibility without sacrificing...
View ArticleTesting with Selenium/WebDriver and the Page Object Pattern
1. Introduction In this article, we’re going to build on the previous writeup and continue to improve our Selenium/WebDriver testing by introducing the Page Object pattern. 2. Adding Selenium Let’s...
View ArticleLocality-Sensitive Hashing in Java Using Java-LSH
1. Overview The Locality-Sensitive Hashing (LSH) algorithm hashes input items so that similar items have a high probability of being mapped to the same buckets. In this quick article, we will use the...
View ArticleDrools Using Rules from Excel Files
1. Overview Drools has support for managing business rules in a spreadsheet format. In this article, we’ll see a quick example of using Drools to manage business rules using an Excel file. 2. Maven...
View ArticleExploring the Spring 5 MVC URL Matching Improvements
1. Overview Spring 5 will bring a new PathPatternParser for parsing URI template patterns. This is an alternative to the previously used AntPathMatcher. The AntPathMatcher was an implementation of...
View Article