jfrunit
jfrunit copied to clipboard
Add matching for field/value
I emit custom events and would like to check that the events are emitted correctly and in the right order. For comparison I would like to use the value of a custom field.
In addition to support that in the ExpectedEvent
it would be great if a matcher containsExactly
could be provided.
Could you share how you envision how using this API looks like? Thanks!
I think about something like
.filter(...) // only my specific types
.containsExactly(event("A").with("key", "value"), event("B").with("key","value"))
But I don't know if this is a corner case which is not of general interest.