unit-test-caching
CommunityValidate Spring Cache behavior with fast tests.
Authorgiuseppe-trisciuoglio
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides unit tests for Spring caching annotations (@Cacheable, @CachePut, @CacheEvict) to validate cache interactions without a full Spring context.
Core Features & Use Cases
- Cacheable Testing: Ensure a method is cached after the first call.
- CacheEvict & CachePut: Validate eviction and updates to cached values.
- Use Case: Confirm cache hits reduce repository calls and maintain correctness.
Quick Start
Add spring-boot-starter-cache and testing dependencies to your build, and write test classes that configure a simple in-memory CacheManager to verify cache hits, misses, and eviction strategies.
Dependency Matrix
Required Modules
None requiredComponents
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: unit-test-caching Download link: https://github.com/giuseppe-trisciuoglio/developer-kit/archive/main.zip#unit-test-caching Please download this .zip file, extract it, and install it in the .claude/skills/ directory.