Learn how to add delays when testing using Thread.sleep(), Awaitility, and Mockito’s Answer.
Also find me here:
Baeldung Author
Shahul Basha
Senior Java developer with over 10 years of experience in software design, development and maintenance in the Java ecosystem.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (2)
- XML (1)
- Spring (1)
- Maven (1)
- Java Map (1)
- Java List (1)
- Jackson (1)
How to Autowire a Spring Bean in a Servlet Filter
Filed under Spring
Explore various approaches to seamlessly obtain Spring beans within a Servlet filter.
How to Parse XML to HashMap in Java
Learn different ways to parse XML into a HashMap, a data structure that allows for efficient data retrieval and manipulation.
How to Mock Constructors for Unit Testing using Mockito
Filed under Testing
Learn different ways to mock constructors through Mockito and PowerMock.
How to Deep Copy an ArrayList in Java
Filed under Java List
A quick and practical guide to deep-copying an ArrayList in Java.