junit-weld-testing

Official

Streamline CDI testing with Weld and JUnit.

Authorcuioss
Version1.0.0
Installs0

System Documentation

What problem does it solve?

CDI unit testing with Weld requires careful configuration to auto-discover beans, register test doubles, and manage scopes; this skill defines standards and patterns to simplify and standardize those tests.

Core Features & Use Cases

  • Auto-discovery with @EnableAutoWeld to reduce boilerplate in CDI tests.
  • Explicit bean registration with @AddBeanClasses / @AddPackages for producers, interceptors, or non-injected beans.
  • Scope activation via @ActivateScopes and optional exclusions with @ExcludeBeanClasses to tailor the test container.
  • Manual configuration with @EnableWeld for full control when auto-discovery is insufficient.

Quick Start

Enable Weld testing in tests by annotating with @EnableAutoWeld, and use @AddBeanClasses or @AddPackages to register beans when auto-discovery is not enough.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: junit-weld-testing
Download link: https://github.com/cuioss/plan-marshall/archive/main.zip#junit-weld-testing

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.