quarkus-tdd

Generate JUnit 5 tests for Quarkus 3.x services with Mockito and AssertJ.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/ThejanaJayalath/Niolla-PM-system --skill quarkus-tdd-thejanajayalath
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: quarkus-tdd
Source: https://github.com/ThejanaJayalath/Niolla-PM-system/tree/main/.cursor/skills/quarkus-tdd
Command: npx skills add https://github.com/ThejanaJayalath/Niolla-PM-system --skill quarkus-tdd-thejanajayalath

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires junit-jupiter, mockito-core, assertj-core, rest-assured, camel-quarkus-junit5.

What problem does it solve?

This skill addresses the complexity of maintaining high-quality, testable code in event-driven Quarkus 3.x architectures, ensuring robust coverage for asynchronous operations and Camel routes.

Core Features & Use Cases

  • Structured Testing: Implements the AAA pattern and @Nested organization for clean, readable unit tests.
  • Event-Driven Validation: Provides patterns for testing Apache Camel routes, RabbitMQ interactions, and CompletableFuture async flows.
  • Coverage Enforcement: Integrates JaCoCo configurations to maintain strict 80% line and 70% branch coverage thresholds.

Quick Start

Use the quarkus-tdd skill to generate a new JUnit 5 test class for a service using Mockito and AssertJ following the given-when-then naming convention.

Frequently Asked Questions about quarkus-tdd

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Apache Camel routes in a Quarkus 3.x application?

Testing Apache Camel routes in Quarkus 3.x uses route advice patterns to isolate and validate event-driven flows. It leverages camel-quarkus-junit5 dependencies to verify asynchronous interactions and complex messaging scenarios.

How do I structure JUnit 5 tests for event-driven Quarkus services?

Structuring JUnit 5 tests for Quarkus services involves the AAA pattern and @Nested classes for readable organization. This approach standardizes unit, integration, and event-driven testing using Mockito and AssertJ.

What is the best way to validate CompletableFuture async flows in Quarkus?

Validating CompletableFuture async flows in Quarkus requires standardized patterns for testing asynchronous operations. It uses AssertJ for assertions and Mockito to verify interactions within event-driven architectures.

How do I enforce JaCoCo code coverage thresholds for Quarkus projects?

Enforcing JaCoCo code coverage for Quarkus projects integrates configurations maintaining strict 80% line and 70% branch thresholds. This ensures high-quality, testable code across event-driven architectures.

Can I use REST Assured for API testing in Quarkus 3.x?

REST Assured supports API testing in Quarkus 3.x by providing standardized patterns for endpoint validation. It integrates seamlessly with JUnit 5 to test RESTful interfaces within event-driven services.

Does Quarkus TDD support Mockito interaction verification for complex scenarios?

Quarkus TDD supports Mockito interaction verification for complex scenarios by structuring mock behaviors and validating asynchronous operations. It enforces strict code standards using JUnit 5 and AssertJ.