fix: `ChatBackendApplicationTest` cannot corrupt the real data anymore
authorKai Moritz <kai@juplo.de>
Mon, 9 Jan 2023 20:14:35 +0000 (21:14 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 25 Jan 2023 20:59:37 +0000 (21:59 +0100)
commitaf3553a0f5093819fc2af088b974375c7102ed9d
treec64e4cb810e8b70566cfc0a9823d535a27409f46
parentaa0efd1151673c5f0f1576c3026f6fdd0dfad691
fix: `ChatBackendApplicationTest` cannot corrupt the real data anymore

- The test used the default storage-direcory.
- Because the app is sometimes aborted during the shutdown, this sometimes
  lead to corrupted data in the default storage-directory.
- The test now uses a predefined set of data underneath the build-directory.
- Also changed the name of the according property to `storage-directory`.
src/main/java/de/juplo/kafka/chat/backend/ChatBackendConfiguration.java
src/main/java/de/juplo/kafka/chat/backend/ChatBackendProperties.java
src/test/java/de/juplo/kafka/chat/backend/ChatBackendApplicationTests.java
src/test/resources/data/618e89ae-fdc0-4c65-8055-f49908295e8f.json [new file with mode: 0644]
src/test/resources/data/chatrooms.json [new file with mode: 0644]