Configure Jenkins to Run and Show JMeter Tests
1. Overview In this article, we’re going to configure a continuous delivery pipeline using Jenkins and Apache JMeter. We’ll rely on the JMeter article as a great starting-point to first understand the...
View ArticleA Guide to Java Initialization
1. Overview Simply put, before we can work with an object on the JVM, it has to be initialized. In the following sections, we’ll take a look at various ways we can initialize primitive types and...
View ArticleHow to Wait for Threads to Finish in the ExecutorService
1. Overview The ExecutorService framework makes it easy to process tasks in multiple threads. We’re going to exemplify some scenarios in which we wait for threads to finish their execution. Also,...
View ArticleFail-Safe Iterator vs Fail-Fast Iterator
1. Introduction In this article, we’ll introduce the concept of Fail-Fast and Fail-Safe Iterators. Fail-Fast systems abort operation as-fast-as-possible exposing failures immediately and stopping the...
View ArticleGuide to JSpec
1. Overview Test runner frameworks like JUnit and TestNG provide some basic assertion methods (assertTrue, assertNotNull, etc.). Then there are assertion frameworks like Hamcrest, AssertJ, and Truth,...
View ArticleStatic and Default Methods in Interfaces in Java
1. Overview Java 8 brought to the table a few brand new features, including lambda expressions, functional interfaces, method references, streams, Optional, and static and default methods in...
View ArticleQuick Guide to BDDMockito
1. Overview The BDD term was coined first by Dan North – back in 2006. BDD encourages writing tests in a natural, human-readable language that focuses on the behavior of the application. It defines a...
View ArticleJava Weekly, Issue 209
Here we go… 1. Spring and Java >> JUnit 5 Tutorial: Writing Parameterized Tests [petrikainulainen.net] Finally, no need to use external tools for writing parameterized tests in JUnit. >>...
View ArticleIntroduction to KafkaStreams in Java
1. Overview In this article, we’ll be looking at the KafkaStreams library. KafkaStreams is engineered by the creators of Apache Kafka. The primary goal of this piece of software is to allow...
View ArticleUsing InfluxDB with Java
1. Overview InfluxDB is a high-performance store for time-series data. It supports insertion and real-time querying of data via a SQL-like query language. In this introductory article, we’ll...
View ArticleA Docker Guide for Java
1. Overview In this article, we take a look at another well-established platform specific API — Java API Client for Docker. Throughout the article, we comprehend the way of how to connect with a...
View ArticleIntroduction to Future in Vavr
1. Introduction Core Java provides a basic API for asynchronous computations – Future. CompletableFuture is one of its newest implementations. Vavr provides its new functional alternative to the...
View ArticleA Guide to Iterator in Java
1. Introduction An Iterator is one of many ways we can traverse a collection, and as every option, it has its pros and cons. It was first introduced in Java 1.2 as a replacement of Enumerations and:...
View ArticlePhantom References in Java
1. Overview In this article, we’ll have a look at the concept of a Phantom Reference – in the Java language. 2. Phantom References Phantom references have two major differences from soft and weak...
View ArticleWeak References in Java
1. Overview In this article, we’ll have a look at the concept of a weak reference – in the Java language. We’re going to explain what these are, what they’re used for and how to work with them...
View ArticleIntroduction to Java Primitives
1. Overview The Java Programming Language features eight primitive data types. In this article, we’ll recall what primitives are and go over them. 2. Primitive Data Types The eight primitives defined...
View ArticleJava Weekly, Issue 211
Let’s jump right in … 1. Spring and Java >> Spring, Reactor and ElasticSearch: from callbacks to reactive streams [nurkiewicz.com] Even if some tools don’t provide out-of-the-box support for...
View ArticleSpring Cloud AWS – S3
In this quick article, we’re going to explore the AWS support provided in the Spring Cloud platform – focusing on S3. 1. Simple S3 Download Let’s start by easily accessing files stored on S3:...
View ArticleSpring Cloud AWS – EC2
In the previous article, we’re focusing on S3; now we’ll focus on the Elastic Compute Cloud – commonly known as EC2. 1. EC2 Metadata Access The AWS EC2MetadataUtils class provides static methods to...
View ArticleSpring Cloud AWS – RDS
In the previous article, we were focusing on EC2; now, let’s move on to the Relational Database Service. 1. RDS Support 1.1. Simple Configuration Spring Cloud AWS can automatically create a DataSource...
View Article