Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reassing with differen types not supported by Assert API #82

Closed
schuettec opened this issue Jan 22, 2019 · 2 comments
Closed

Reassing with differen types not supported by Assert API #82

schuettec opened this issue Jan 22, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@schuettec
Copy link
Contributor

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 schuettec self-assigned this Jan 22, 2019
@schuettec schuettec added the bug label Jan 22, 2019
@schuettec schuettec added this to the 4.1.4 milestone Jan 22, 2019
@schuettec
Copy link
Contributor Author

#83

@schuettec
Copy link
Contributor Author

Release available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant