java-tdd-guide

Community

Practical Java TDD guide: Red-Green-Refactor.

Authorbernardladenthin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Java development often lacks consistent testing discipline. This skill provides a practical, project-agnostic guide to applying Test-Driven Development in Java, helping teams establish a repeatable Red → Green → Refactor workflow and reduce defect rates.

Core Features & Use Cases

  • Red → Green → Refactor workflow: describes the cycle, along with examples and project-agnostic conventions.
  • Test structure & conventions: guidelines for test file layout, naming, editor folds, and assertion style to maintain readability and consistency.
  • Tooling & practices: coverage of JUnit 4, Hamcrest, Mockito usage, data providers, and null-safety annotations to support robust unit tests.

Quick Start

Start by writing a failing test, then implement the minimal production code to pass, and finally refactor for readability.

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: java-tdd-guide
Download link: https://github.com/bernardladenthin/BitcoinAddressFinder/archive/main.zip#java-tdd-guide

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.