Lightlines
By giuseppe-trisciuoglio

unit-test-caching

giuseppe-trisciuoglio3.4k installs

Test caching behavior without a full Spring context.

What it does

Provides patterns and generates unit tests for Spring caching annotations without loading a full Spring context.

When to use it

Use when testing cache hits, misses, updates, eviction, keys, conditions, or mocked cache managers.

How to use it

Give it a Spring caching test goal in a project; it generates unit-test code covering the requested cache behavior.

What you provide

  • An existing project

Latest review

What you need · 2

The example adds the Spring Boot cache starter as an implementation dependency.

The example adds the Spring Boot test starter as a test dependency.


Access · 0

No additional actions listed.