Testing 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 add a new dependency to our project to write simpler, more readable… Continue Reading selenium-webdriver-page-object

Working with Relationships in Spring Data REST 1. Overview In this article, we’re going to take a look at how to work with relationships between entities in Spring Data REST. We will focus on the association resources that Spring Data REST exposes for a repository, considering each type of relationship… Continue Reading spring-data-rest-relationships

How to Separate Double into Integer and Decimal Parts Java 1. Overview In this tutorial, we’ll explore various methods to separate integer and decimal parts of floating-point types in Java, namely float and double. 2. Issues with Floating-Points Types Let’s start by looking at a simple fraction, and a naive way of… Continue Reading java-separate-double-into-integer-decimal-parts

Reactive Flow with MongoDB, Kotlin, and Spring WebFlux 1. Overview In this tutorial, we’ll write a simple application showcasing a fully reactive flow using Spring Data Reactive MongoDB and Spring SSeEmitter. On one side, we’ll apply Spring Data Reactive MongoDB to save data through a Mongo reactive database and combine it with… Continue Reading kotlin-mongodb-spring-webflux

Filtering a Java Collection by a List 1. Overview Filtering a Collection by a List is a common business logic scenario. There are plenty of ways to achieve this. However, some may lead to under-performing solutions if not done properly. In this tutorial, we’ll compare some filtering implementations and discuss… Continue Reading java-filter-collection-by-list