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

support assertions on expectedEvents #138

Open
jangalinski opened this issue Mar 22, 2022 · 1 comment
Open

support assertions on expectedEvents #138

jangalinski opened this issue Mar 22, 2022 · 1 comment

Comments

@jangalinski
Copy link
Contributor

The default "expectEvent(s)" does an equals comparison of the caught events and passed expected events, which fails when values are set in the commandhandler that are not under control of the caller (generated aggregateId, generated timestamps, ...).

Idea: capture the actual events as in mockitos ArgumentCaptor and then assert manually on that list of events.

@jangalinski jangalinski added this to the 0.1.1 milestone Mar 22, 2022
@jangalinski jangalinski modified the milestones: 0.2.0, BACKLOG Apr 27, 2022
@jangalinski jangalinski removed this from the BACKLOG milestone Apr 27, 2023
@zambrovski
Copy link
Contributor

I'll even suggest to implement an ObjectAssert and ListAssert for EventMessage.

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

No branches or pull requests

2 participants