Using Conditions with AssertJ Assertions
1. Overview In this tutorial, we’ll take a look at the AssertJ library, especially at defining and using conditions to create readable and maintainable tests. AssertJ basics can be found here. 2....
View ArticleJPA Attribute Converters
1. Introduction In this quick article, we’ll cover the usage of the Attribute Converters available in JPA 2.1 – which, simply put, allow us to map JDBC types to Java classes. We’ll use Hibernate 5 as...
View ArticleIntroduction to Jinq with Spring
1. Introduction Jinq provides an intuitive and handy approach for querying databases in Java. In this tutorial, we’ll explore how to configure a Spring project to use Jinq and some of its features...
View ArticleRegular Expressions in Kotlin
1. Introduction We can find use (or abuse) of regular expressions in pretty much every kind of software, from quick scripts to incredibly complex applications. In this article, we’ll see how to use...
View ArticleReliable Messaging with JGroups
1. Overview JGroups is a Java API for reliable messages exchange. It features a simple interface that provides: a flexible protocol stack, including TCP and UDP fragmentation and reassembly of large...
View ArticleIntroduction to ActiveWeb
1. Overview In this article, we’re going to illustrate the Activeweb – a full stack web framework from JavaLite – providing everything necessary for the development of dynamic web applications or...
View ArticleCheck if a String is a Palindrome
1. Introduction In this article, we’re going to see how we can check whether a given String is a palindrome using Java. A palindrome is a word, phrase, number, or other sequences of characters which...
View ArticleIntroduction to Smooks
1. Overview In this tutorial, we’ll introduce the Smooks framework. We’ll describe what it’s, list its key features, and eventually learn how to use some of its more advanced functionality. First of...
View ArticleA Maze Solver in Java
1. Introduction In this article, we’ll explore possible ways to navigate a maze, using Java. Consider the maze to be a black and white image, with black pixels representing walls, and white pixels...
View ArticleJava Weekly, Issue 216
Here we go… 1. Spring and Java >> Monitor and troubleshoot Java applications and services with Datadog Optimize performance with end-to-end tracing and out-of-the-box support for popular Java...
View ArticleInstance Profile Credentials using Spring Cloud
1. Introduction In this quick article, we’re going to build a Spring Cloud application that uses instance profile credentials to connect to an S3 bucket. 2. Provisioning Our Cloud Environment Instance...
View ArticleLife Cycle of a Thread in Java
1. Introduction In this article, we’ll discuss in detail a core concept in Java – the lifecycle of a thread. We’ll use a quick illustrated diagram and, of course, practical code snippets to better...
View ArticleIntroduction to ActiveJDBC
1. Introduction ActiveJDBC is a lightweight ORM following the core ideas of ActiveRecord, the primary ORM of Ruby on Rails. It focuses on simplifying the interaction with databases by removing the...
View ArticleAssertJ 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...
View ArticleMethod Constraints with Bean Validation 2.0
1. Overview In this article, we’ll discuss how to define and validate method constraints using Bean Validation 2.0 (JSR-380). In the previous article, we discussed JSR-380 with its built-in...
View ArticleCreate a Sudoku Solver in Java
1. Overview In this article, we’re going to look at Sudoku puzzle and algorithms used for solving it. Next, we’ll implement solutions in Java. The first solution will be a simple brute-force attack....
View ArticleWebSockets with AsyncHttpClient
1. Introduction AsyncHttpClient (AHC) is a library, based on Netty, created to easily execute asynchronous HTTP calls and communicate over the WebSocket protocol. In this quick tutorial, we’ll see how...
View ArticleExploring jrecreate
1. Introduction to EJDK The EJDK (Embedded Java Development Kit) was introduced by Oracle to solve the problem of providing binaries for all the available embedded platforms. We can download the...
View ArticleSpring ResponseStatusException
1. Overview In this quick tutorial, we’ll discuss the new ResponseStatusException class introduced in Spring 5. This class supports the application of HTTP status codes to HTTP responses. A RESTful...
View ArticleInfix Functions in Kotlin
1. Introduction Kotlin is a language that adds many fresh features to allow writing cleaner, easier-to-read code. This, in turn, makes our code significantly easier to maintain and allows for a better...
View Article