fix: Added constraints for valid usernames
authorKai Moritz <kai@juplo.de>
Tue, 10 Jan 2023 22:59:36 +0000 (23:59 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 25 Jan 2023 20:59:37 +0000 (21:59 +0100)
commitf5bc2f9d05c472ad1b8f55fe193727ea3a84dc4d
tree0dd1534ae9f490515143da0bd1335e75cd17571d
parent009435373fa6adf7ec9e375ef71a545c8c8f010d
fix: Added constraints for valid usernames

- This fix is necessary, because not all usernames can be stored in
  the newly introduced `MongoDbStorageStrategy`.
src/main/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerAdvice.java
src/main/java/de/juplo/kafka/chat/backend/domain/ChatRoom.java
src/main/java/de/juplo/kafka/chat/backend/domain/InvalidUsernameException.java [new file with mode: 0644]
src/test/java/de/juplo/kafka/chat/backend/api/ChatBackendControllerTest.java