A Guide to Jdbi
1. Introduction In this article, we’re going to look at how to query a relational database with jdbi. Jdbi is an open source Java library (Apache license) that uses lambda expressions and reflection...
View ArticleThe @JvmSynthetic Annotation in Kotlin
1. Introduction Kotlin is a programming language for the JVM and compiles directly to Java Bytecode. However, it’s a lot more concise than Java, and certain JVM features don’t directly fit into the...
View ArticleAssertions in JUnit 4 and JUnit 5
1. Introduction In this article, we’re going to explore in details the assertions available within JUnit. Following the migrating from JUnit 4 to JUnit 5 and A Guide to JUnit 5 articles, we’re now...
View ArticleMaven Dependency Scopes
1. Introduction Maven is one of the most popular build tools in the Java ecosystem, and one of its core features is dependency management. In this article, we’re going to describe and explore the...
View ArticleA Guide to Unirest
1. Overview Unirest is a lightweight HTTP client library from Mashape. Along with Java, it’s also available for Node.js, .Net, Python, Ruby, etc. Before we jump in, note that we’ll use mocky.io for...
View ArticleChain of Responsibility Design Pattern in Java
1. Introduction In this article, we’re going to take a look at a widely used behavioral design pattern: Chain of Responsibility. We can find more design patterns in our previous article. 2. Chain of...
View ArticleJava Weekly, Issue 220
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 ArticleHamcrest Text Matchers
1. Overview In this tutorial, we’ll explore Hamcrest Text Matchers. We discussed Hamcrest Matchers in general before in testing with Hamcrest, in this tutorial we’ll focus on Text Matchers only. 2....
View ArticleHamcrest File Matchers
1. Overview In this tutorial, we’ll discuss Hamcrest File Matchers. We discussed Hamcrest Matchers in general before in the previous Testing with Hamcrest article. In the next sections, we’ll focus...
View ArticleGuide to Externalizable Interface
1. Introduction In this tutorial, we’ll have a quick look at java’s java.io.Externalizable interface. The main goal of this interface is to facilitate custom serialization and deserialization. Before...
View ArticleSession Attributes in Spring MVC
1. Overview When developing web applications, we often need to refer to the same attributes in several views. For example, we may have shopping cart contents that need to be displayed on multiple...
View ArticleIntroduction to Apache Curator
1. Introduction Apache Curator is a Java client for Apache Zookeeper, the popular coordination service for distributed applications. In this tutorial, we’ll introduce some of the most relevant...
View ArticleHow to Make a Deep Copy of an Object in Java
1. Introduction When we want to copy an object in Java, there’re two possibilities that we need to consider — a shallow copy and a deep copy. The shallow copy is the approach when we only copy field...
View ArticleIntroduction to Akka Actors in Java
1. Introduction Akka is an open-source library that helps to easily develop concurrent and distributed applications using Java or Scala by leveraging the Actor Model. In this tutorial, we’ll present...
View ArticleMultipart Uploads in Amazon S3 with Java
1. Overview In this tutorial, we’ll see how to handle multipart uploads in Amazon S3 with AWS Java SDK. Simply put, in a multipart upload, we split the content into smaller parts and upload each part...
View ArticleSpring Data with Spring Security
1. Overview Spring Security provides a good support for integration with Spring Data. While the former handles security aspects of our application, the latter provides convenient access to the...
View ArticleJava 8 Math New Methods
1. Introduction Usually, when we think about the new features that came with version 8 of Java, functional programming and lambda expressions are first things that come to mind. Nevertheless, besides...
View ArticleREST-assured with Groovy
1. Overview In this tutorial, we’ll take a look at using the REST-assured library with Groovy. Since REST-assured uses Groovy under the hood, we actually have the opportunity to use raw Groovy syntax...
View ArticleMapping LOB Data in Hibernate
1. Overview LOB or Large OBject refers to a variable length datatype for storing large objects. The datatype has two variants: CLOB – Character Large Object will store large text data BLOB – Binary...
View ArticleHow to Find and Open a Class with Eclipse
1. Introduction In this article, we’re going to take a look at a number of ways to find a class in Eclipse. All the examples are based on Eclipse Oxygen. 2. Overview In Eclipse, we often need to look...
View Article