
unit-test-mapper-converter
Provides patterns for unit testing mappers, converters, and bean mappings
by giuseppe-trisciuoglioFree
Description
This agent skill gives patterns for unit testing object mapping code in Java. It covers MapStruct mappers and custom converter classes, the code that turns entities into DTOs and back again. The tests check that each field is mapped correctly, how null values are handled, and whether types convert as expected. They also cover nested objects, collections, bidirectional mapping, enum mapping and partial updates, where only some fields change. The skill begins with a check that the generated mapper classes exist before any tests run. For MapStruct, these classes are produced at build time under target/generated-sources, so the skill shows how to confirm they were generated. The tests are unit tests, so they check the transformation in isolation, without a database or a web layer. The skill is an instruction set for an AI coding agent working on a Java project, and it is part of the developer-kit repository by giuseppe-trisciuoglio, which has about 371 stars on GitHub. It is one of a group of unit testing skills for Spring applications in that repository.…
Highlights
- Verify that MapStruct mapper classes were generated
- Test field mapping accuracy and null handling
- Check nested objects and collection transformations
- Cover enum mapping and bidirectional mapping
- Test partial updates in isolation
Ratings & Reviews
No ratings yet
Be the first to rate unit-test-mapper-converter.
People also visit

unit-test-config-properties
Provides patterns for unit testing `@ConfigurationProperties` classes
unit-test-mapper-converter FAQ
Which mapping tools does it cover?
It covers MapStruct mappers and custom converter classes written by hand.
Why does it check the generated sources first?
MapStruct generates the mapper classes at build time, so the skill asks you to confirm they exist under target/generated-sources before writing tests.
Does it need a database?
No. The tests check the transformation in isolation.
How do I install it?
Run npx skills add https://github.com/giuseppe-trisciuoglio/developer-kit --skill unit-test-mapper-converter.
What security audits has it passed?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Pass.
What are the best unit-test-mapper-converter alternatives?
Popular alternatives to unit-test-mapper-converter include unit-test-parameterized, generating-apex-test and unit-test-boundary-conditions. See all unit-test-mapper-converter alternatives











