Virtual threads in Java 21, Java profilers, a new build system for Java, auto-explain for Postgres, and Generative AI!
Search Results for: junit
OffsetDateTime Serialization With Jackson
Learn how to serialize and deserialize OffsetDateTime with Jackson in Java.
Java Weekly, Issue 481
Java is evolving and growing up. We’re getting close to Java 20 🙂
Testing Spring OAuth2 Access-Control
Explore options for testing Spring OAuth2 access control rules with mocked identities.
Java Weekly, Issue 479
Java security API, Kotlin 2.0 compiler, testcontainers, web apps with Loom, safer refactorings, and write stuff down!
Exclude a Dependency in a Maven Plugin
A quick and practical guide to excluding a transitive dependency from a Maven plugin.
Pitfalls on Testing with Spring Boot
Learn the pitfalls of writing Spring Boot tests.
Java Weekly, Issue 477
Faster Image IO in Java 21, enhanced escape analysis, type-safe stream API queries, scalable media ML, and efficient one-on-ones!
Java Team Lead with Spring Experience (Remote) (Part Time)
Looking for a Java Lead with Spring experience to join the Baeldung team.
Single Assert Call for Multiple Properties in Java Unit Testing
Learn three approaches to verifying multiple properties in one assert call using JUnit5 and AsssertJ.
Java Weekly, Issue 475
Fast Java 21, compact strings, static mocks, native GC for Quarkus, async stack trace, and non-vulnerable microservices!
Generate Unit Test Data in Java Using Instancio
Learn how to eliminate manual data setup in tests by auto-generating the data using Instancio.
Difference Between JPA and Spring Data JPA
Learn how Spring Data JPA and JPA both work with some high-level overviews and code snippets.
Working With Multiple Repositories in Gradle
Learn how to use libraries from multiple repositories when working on a Gradle project and how to use GitHub Package Registry for authenticated repositories.
Observability With Spring Boot 3
A quick and practical guide to observability with Spring Boot 3.
Handle Browser Tabs With Selenium
Learn how we handle browser tabs with Selenium.
REST vs. GraphQL vs. gRPC – Which API to Choose?
REST, GraphQL, and gRPC are solutions to different problems when calling webservices. We look at how they differ and can be combined in our architecture.
Mocking a Singleton With Mockito
Learn a few ways to write unit tests for singletons using Mockito.
How to Insert a HashMap Into MongoDB With Java?
Learn how to insert HashMap into MongoDB.
Java Weekly, Issue 458
On using Spring MVC well, an interesting tool to migrate a Spring project to Boot and some testing goodness. A busy week, overall.