In this article, we’ll explore how we can verify that an object is of a specific type. We’ll be looking at different testing libraries and what methods they offer to assert the object type.
Software Engineer by day, Ballerina by night. Passionate about problem solving and de-mystifying serious-sounding topics.
Here's what I've written (so far):
Baeldung on Java
- Spring (3)
- Testing (2)
- JSON (2)
- HTTP Client-Side (2)
- Spring Web (1)
- Reactive (1)
- Java (1)
In this article, we’ll use WebClient – a non-blocking, reactive HTTP client – to illustrate how to upload a file.
Learn how we can use Cucumber tag expressions to manipulate the execution of tests and their relevant setups.
Learn how to convert a JSON Array into a Java Array of Object, Array of POJO, and a List of POJO using Spring WebClient
Spring RestTemplate can convert a JSON array to a variety of Java types. We look at the options and how to produce a type-specific list.
We’ll walk through how we can use properties defined in a YAML file to configure values for a Map in our POJO classes.