Skip to main content
ActiveJavaRefactoringTestingApproval Tests

Gilded Rose Kata

Classic refactoring kata to practice legacy code improvement techniques.

Implementation of the famous Gilded Rose Kata in Java with Approval Tests. This kata is perfect for practicing refactoring techniques on legacy code.

Description

The Gilded Rose is an inn that needs to update its inventory system. Different items have different quality degradation rules over time. The challenge is to refactor the existing code without changing its behavior.

Features

  • Approval Tests: Uses ApprovalTests.Java to verify behavior

  • Two testing styles: Includes examples with different testing approaches

  • Complete documentation: Detailed requirements in both English and Spanish

  • Solution steps: Step-by-step guide through the refactoring process

Learning Objectives

  • Work with legacy code

  • Apply safe refactoring techniques

  • Create characterization tests

  • Maintain behavior while improving design

  • Use approval testing to document behavior

Technologies

  • Java

  • Maven

  • JUnit 5

  • ApprovalTests

Documentation

The project includes:

  • System requirements (English and Spanish)

  • Detailed solution steps

  • Examples of different testing styles

Links

Statistics

Last commit
2024-11-01

Tech Stack

JavaRefactoringTestingApproval Tests