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>
Mon, 9 Jan 2023 20:14:35 +0000 (21:14 +0100)
commit06dc744bf6f251ae82b2a2af6815866665e949cf
tree8aec75f09d3d4491b1ebc073ce875eaf66527642
parent1e818a4d296f12e0038b6a3c5f12e9a6c727eff8
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]