Java

Unit Test with AssertJ in java

Unit Test with AssertJ in java

assertThat() with AssertJ Assertions

Ashish Lahoti

In this tutorial, we’ll learn how to write efficient unit test cases in Java using AssertJ assertThat() assertions.

Unit Test with Hamcrest in java

Unit Test with Hamcrest in java

assertThat() with Hamcrest Matchers

Ashish Lahoti

In this tutorial, we’ll learn how to write efficient Junit test cases in Java using Hamcrest assertThat() with Matchers.

Zip and Unzip Files in Java

Zip and Unzip Files in Java

Ashish Lahoti

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.

Using Streams API with Map in Java 8

Using Streams API with Map in Java 8

Ashish Lahoti

Java 8 streams API is a widely used feature to write code in a functional programming way. In this tutorial, we’ll discuss how to use Streams API for Map creation, iteration and sorting.