AxonFramework / ReferenceGuide

The Reference Guide of Axon Framework
Apache License 2.0
29 stars 22 forks source link

Mention the usage of Fixture.registerIgnoredField #95

Open mvonrenteln opened 6 years ago

mvonrenteln commented 6 years ago

In the documentation of the tests the usage of fixture.expectEventsMatching() is very detailed. This can lead to excessive usage of matchers instead of the simpler fixture.expectEvents().

In many cases fixture.expectEvents() would be simpler and is sutable. But the ID-Field often is not known in the test (or not of interest) and this leads to the usage of the matcher version. So a short documentation of fixture.expectEvents() in combination with registerIgnoredField() would help to choose the right expect method.