fix: Refined `ChatBackendControllerTest` and fixed a bug in `ChatRoom`
authorKai Moritz <kai@juplo.de>
Mon, 9 Jan 2023 19:51:20 +0000 (20:51 +0100)
committerKai Moritz <kai@juplo.de>
Mon, 9 Jan 2023 20:07:26 +0000 (21:07 +0100)
commit1e818a4d296f12e0038b6a3c5f12e9a6c727eff8
treeb283411be9b9e0dbd39452fb3dfe7183a7e3971f
parent95a18c0ef8909b9ffc43df035ed325059e2ca344
fix: Refined `ChatBackendControllerTest` and fixed a bug in `ChatRoom`

- Only `ChatHomeService` and `ChatRoomService` are mocked.
- This makes the test more robust, because there are less sources for
  false positives or wron negatives because of wrongly mocked behaviour.
- Aforementioned is proofed by an unnoticed bug, that was discoverd by
  the freshly refined test.
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java