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>
Wed, 25 Jan 2023 20:59:37 +0000 (21:59 +0100)
commitaa0efd1151673c5f0f1576c3026f6fdd0dfad691
tree8e271bd8cd696d13a86bcd5aecf70c2a9721484a
parent212c5eb7912fd15768ddab961d104b27acc620a0
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