test: Refactored `ChatRoomDataTest` - made mocking more clear
authorKai Moritz <kai@juplo.de>
Fri, 8 Mar 2024 11:27:15 +0000 (12:27 +0100)
committerKai Moritz <kai@juplo.de>
Fri, 15 Mar 2024 20:33:43 +0000 (21:33 +0100)
commit28f3fec9919502e92d2a551fc9d87731669a89f2
treeafe185b79733575b98520ae669f2a7bcc4ec2297
parent52edf6d5bd65fcf99e3fba4ffd8844328d319f35
test: Refactored `ChatRoomDataTest` - made mocking more clear

* When mocking the results of calls to `ChatMessageService`, the returned
  message does naturally _not_ reflect the parameters of the call.
* Hence, a arbitrary message is used whenever the test only asserts,
  that a value, that was returened by `ChatMessageService` is handed
  through as expected by `ChatRoomData`.
src/test/java/de/juplo/kafka/chat/backend/domain/ChatRoomDataTest.java