1. Overview In this tutorial, we'll look at changing property names during serialization and deserialization. As a result, a field name in Java obj...
Continue Reading1. Overview In this tutorial, we'll investigate how to format date fields for serialization using Jackson. Firstly, we'll look at Jackson's default...
Continue Reading1. Overview In this tutorial, we'll investigate how we can monitor unit tests using JUnit test rules. JUnit provides the TestWatcher class as a tem...
Continue Reading1. Overview In this tutorial, we'll examine how we can create a custom JUnit test rule to introduce new behavior to our tests. In the end, we'll ha...
Continue Reading1. Overview In this tutorial, we'll look at different ways to verify exceptions in a JUnit test. 2. Verifying Exceptions using @Test Annotation Fir...
Continue Reading1. Overview In this tutorial, we'll look at the built-in JUnit test rules. In the end, we'll have the knowledge to use them at appropriate places. ...
Continue Reading1. Overview In this tutorial, we'll look at how we can set timeouts for unit tests using JUnit. 2. Set Timeout for a Single Test Firstly, let's see...
Continue Reading1. Overview In this tutorial, we'll look at the basic structure of a JUnit test rule. 2. TestRule Interface The TestRule interface is the main inte...
Continue Reading1. Overview In this tutorial, we're going to look at how we can ignore properties for serialization, but not for deserialization. So when Jackson i...
Continue Reading1. Overview In this article, we'll look at the @Data and @Value annotations of Lombok. @Data and @Value are two shortcut annotations that bring a l...
Continue Reading