You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, in your book, you recommend creating a test for a new Game Event Handler class. You have an implementation of this test, because I'm a little confused about how to use this instruction to create a test for the consumer https://docs.spring.io/spring-amqp/reference/html/#test-harness
The text was updated successfully, but these errors were encountered:
Hi Andrey, good question! I haven't written tests using those Spring AMQP tools yet. What I had in mind is mocking the GameService operation and invoking the handleMultiplicationSolved method explicitly with an event that you can create beforehand. You can also instruct the mock to throw an exception to test the error scenario.
Hi, in your book, you recommend creating a test for a new Game Event Handler class. You have an implementation of this test, because I'm a little confused about how to use this instruction to create a test for the consumer https://docs.spring.io/spring-amqp/reference/html/#test-harness
The text was updated successfully, but these errors were encountered: