Securing A JakartaEE REST API With OIDC

This article shows how to build, containerize, and test a secure Jakarta EE 10 REST API using Open Liberty as both OpenID Connect (OIDC) provider and client. All container operations (build, run, stop, remove) are automated with Maven plugins in the integration-test module. You’ll use Java 21, CDI constructor injection, JPA, Flyway, Podman, and comprehensive … Read more

Build, Test, and Containerize a JakartaEE REST API With Open Liberty and Podman

This is a complete, beginner-friendly, end-to-end guide for building, containerizing, and testing a Java 21 REST API with Open Liberty and Podman, with clear descriptions and step-by-step IntelliJ IDEA instructions. 1. Prerequisites and Setup Purpose:Prepare your development environment with all necessary tools to build, containerize, and run your Java 21 REST API with Open Liberty and Podman. A. Install … Read more

Using the Embedded Open Liberty JMS Engine for Testing Jakarta EE Applications

Welcome to this in-depth guide on leveraging the embedded Open Liberty JMS engine for testing Jakarta EE 10 applications. Building on our previous tutorials, including the Jakarta EE Tutorial with Examples (#) and Advanced Jakarta EE Unit Testing (#), explores using the embedded Java Message Service (JMS) engine in Open Liberty to test message-driven applications. … Read more

Advanced Jakarta EE Unit Testing: Mastering JerseyTest and HK2 for CDI-Injected Endpoints

Welcome to the ultimate guide on advanced Jakarta EE unit testing with JerseyTest and HK2, building on our previous Jakarta EE Tutorial with Examples (#). This tutorial dives deep into unit testing RESTful APIs in Jakarta EE 10, focusing on JAX-RS endpoints with CDI-injected dependencies. We’ll extend the original UserResource and UserService examples, introduce a … Read more

Jakarta EE Tutorial with Examples: Enterprise Java with Open Liberty in 2025

Welcome to the ultimate Jakarta EE tutorial with examples, designed to empower developers to build robust, scalable enterprise applications using Open Liberty, a lightweight and flexible Jakarta EE runtime. This comprehensive guide covers Jakarta EE’s core concepts, provides practical examples, and integrates JUnit 5 for testing. We’ll also include a step-by-step guide to set up … Read more

Testing Jakarta EE REST APIs with Mockito and JUnit 5

Here’s the revised version using @ExtendWith and @InjectMocks for CDI-style mocking: Testing Jakarta EE REST APIs with Mockito and JUnit 5Discover how to test Jakarta EE 10 APIs without a server using Mockito’s dependency injection and JUnit 5 extensions. 1. Maven Dependencies Add these testing frameworks to your pom.xml:

2. REST Resource with CDI … Read more