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>
Sun, 15 Jan 2023 18:37:26 +0000 (19:37 +0100)
commit49fdcd507b687fb41f63f7a541975d33ca12a628
tree10436191d5afd8b1c08d3d533142d96ebaa42cb8
parent06406340d85aff785afd455359fc59cd7485fcee
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