Scenario Test Usecase (no events, number of events) #589
-
|
Dear all, I am trying to create unittests for my Spring Modulith application. Creating tests for published events are easy: What I fail to create:
Any ideas how to replicate something like this? Best regards |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Can you please go ahead and create an issue for the first case? I am not sure yet whether we should go with that intermediate Can you also please do the same for the second item? I guess I'd rather like to integrate that into the |
Beta Was this translation helpful? Give feedback.
Can you please go ahead and create an issue for the first case? I am not sure yet whether we should go with that intermediate
….not()or additional….notToArrive(), as some overloads of….toArrive(…)take the event we're expecting in some form or another, which doesn't work if there's no event to expect. The latter approach, however, might add quite a few new methods, which is not without problems either.Can you also please do the same for the second item? I guess I'd rather like to integrate that into the
….toArriveAndAssert(…)flavor, expanding on thePublishedEventAssertwe already have in place.