Lightlines
By giuseppe-trisciuoglio

unit-test-mapper-converter

giuseppe-trisciuoglio3.6k installs

Catch data mapping errors with focused unit tests.

What it does

Guides the creation of isolated unit tests that check mapper and converter transformations.

When to use it

Use when writing MapStruct mapping tests, testing entity-to-DTO converters, or validating nested objects and collection transformations.

How to use it

It changes how the agent writes mapper and converter tests, emphasizing transformation correctness, null handling, collections, and round-trip consistency.

What you provide

  • An existing project

Latest review

What you need · 1

MapStruct mapper tests require its annotation processor to be configured and mapper interfaces to be compiled so generated implementations exist.


Access · 0

No additional actions listed.