remondis-it / remap

A declarative mapping library to simplify testable object mappings.
Apache License 2.0
122 stars 22 forks source link

Reassing with differen types not supported by Assert API #82

Closed schuettec closed 5 years ago

schuettec commented 5 years ago

When having a mapper with a reassing that is used for a type mapping (B -> BResource),...

        .to(AResource.class)
        .reassign(A::getB)
        .to(AResource::getbResource)
        .useMapper(bMapper)
        .mapper();

...then the corresponding test using the Assert API produces a compiler error:

    AssertMapping.of(aMapper)
        .expectReassign(A::getB)
        .to(AResource::getbResource)
        .ensure();

This is because the support for different types for reassing was not reflected in the Assert API.

schuettec commented 5 years ago

83

schuettec commented 5 years ago

Release available.