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.
Also find me here:
Baeldung Author
Trixi Turny
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
- All
- Spring (3)
- Testing (2)
- JSON (2)
- HTTP Client-Side (2)
- Spring Web (1)
- Reactive (1)
- Java (1)
Upload a File with WebClient
In this article, we’ll use WebClient – a non-blocking, reactive HTTP client – to illustrate how to upload a file.
Using Cucumber Tags with JUnit 5
Filed under Testing
Learn how we can use Cucumber tag expressions to manipulate the execution of tests and their relevant setups.
Get List of JSON Objects with WebClient
Filed under HTTP Client-Side, JSON, Spring Web
Learn how to convert a JSON Array into a Java Array of Object, Array of POJO, and a List of POJO using Spring WebClient
Get list of JSON objects with Spring RestTemplate
Filed under HTTP Client-Side, JSON, Spring
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.
How to Define a Map in YAML for a POJO?
We’ll walk through how we can use properties defined in a YAML file to configure values for a Map in our POJO classes.