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, 22 Mar 2024 16:39:20 +0000 (17:39 +0100)
commit3e44e1c19be8dcf4bc9cb8050a5d562900fdcd89
tree24639b4af741bfe6678e94ae8433ff8861c677b7
parent6d9a0d16b92ad32f6b2ab985e6b6d05e5c535dca
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