
Unit Test with AssertJ in java
assertThat() with AssertJ Assertions
In this tutorial, we’ll learn how to write efficient unit test cases in Java using AssertJ assertThat()
assertions.
assertThat() with AssertJ Assertions
In this tutorial, we’ll learn how to write efficient unit test cases in Java using AssertJ assertThat()
assertions.
assertThat() with Hamcrest Matchers
In this tutorial, we’ll learn how to write efficient Junit test cases in Java using Hamcrest assertThat()
with Matchers.
Quick example to format any type of number - int, long, float, and double to 2 decimal places in Java
In this tutorial, we will learn how to auto generate class files from XSD schema using JAXB task and use them to convert to Json.
Fetch Data from multiple sources asynchronously using Java executor fixed thread pool and combine them in Java
In this tutorial, we’ll learn how to zip a file or directory into an archive and how to unzip the archive into a directory using Java core libraries.
In this tutorial, we’ll learn different methods to convert long primitive or Long object to String in Java
Java 8 stream is widely used feature to write code in functional programming way. In this tutorial, we’ll discuss how to use Streams for Map creation, iteration and sorting.
In this tutorial, we’ll learn different ways to initialize a Map with values in Java.
In this tutorial, we’ll learn basics of Java Annotations, Built-in Java Annotations, How to create single-value, multi-value, repeated and type annotations and How to use them at runtime.