Discover how to use JUnit 5s Engine Test Kit in your applications.
Also find me here:
Baeldung Author
Sam Gardner
I'm a UK based full stack developer with 8+ years of experience. I specialise in Java but enjoy working with frontend languages and libraries as well. I'm always keen to learn new things and pass on that knowledge to others.
Here's what I've written (so far):
Baeldung on Java
- All
- Testing (3)
- Java String (3)
- Java List (2)
- Java Concurrency (2)
- Java Collections (2)
- Jackson (2)
- Spring (1)
- Reactive (1)
- Persistence (1)
- Networking (1)
- Java Web (1)
- Java Streams (1)
- Java Numbers (1)
- Java Dates (1)
- Java (1)
- JSON (1)
- Core Java (1)
- Algorithms (1)
Flexible Constructor Bodies in Java 25
Filed under Core Java
Discover the new constructor options availabe in Java 25.
A Guide to Spring gRPC Project
Filed under Spring
Learn how to use Spring gRPC project to build a Spring application with a gRPC server.
How to Map an Empty String to Null Using MapStruct
Filed under Java String
Explore three options for using MapStruct to convert Strings to nulls
Reusing a PreparedStatement Multiple Times in Java
Filed under Persistence
Learn how to reuse PreparedStatements efficiently.
Merge Overlapping Intervals in a Java Collection
Filed under Algorithms, Java Collections
Learn how to take a Java collection of intervals and merge the overlapping ones.
Simple Web Server in Java
Filed under Java Web
Learn about Simple Web Server in Java 18 and how it works.
Calculate Number of Weekdays Between Two Dates in Java
Filed under Java Dates
Learn two different methods in Java for calculating the number of weekdays between two dates.
Verify That Lambda Expression Was Called Using Mockito
Filed under Testing
Learn how to test if our code calls a lambda function by using Mockito.