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>
Sun, 15 Jan 2023 18:37:26 +0000 (19:37 +0100)
commit500e008fe64c12f306c5b302d983db3fc33067dd
treec6a4990cdaccc4c404c2100458d627794297e773
parent49fdcd507b687fb41f63f7a541975d33ca12a628
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]