test: Streamlined the config-IT, so that they use the same expectations
authorKai Moritz <kai@juplo.de>
Fri, 13 Jan 2023 20:44:02 +0000 (21:44 +0100)
committerKai Moritz <kai@juplo.de>
Wed, 25 Jan 2023 21:00:58 +0000 (22:00 +0100)
commite70011c8379dfc67d359947ebb88c067801317da
tree567adc86d9c39372a624bd5e970cd7cc76256629
parentfd45f7f9e3b3d7a312af9112cae79a0c40172316
test: Streamlined the config-IT, so that they use the same expectations

- Both tests now use the same data and expect the same results.
- Moved the actual tests and assertions to `AbstractConfigurationIT`.
- Also streamlined `AbstractStorageStrategyIT`, so that it produces
  the exact same data, that the configuration-tests are expecting.
  This is not a necessary change to get the refined coniguration-tests
  running. It just makes it easier, to produce the needed test-data for
  future refinements.
- Also streamlined the naming of the directory, where
  `InMemoryWithFilesStorageIT` stores its data.
src/test/java/de/juplo/kafka/chat/backend/AbstractConfigurationIT.java [new file with mode: 0644]
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithFilesConfigurationIT.java
src/test/java/de/juplo/kafka/chat/backend/InMemoryWithMongoDbConfigurationIT.java
src/test/java/de/juplo/kafka/chat/backend/persistence/AbstractStorageStrategyIT.java
src/test/java/de/juplo/kafka/chat/backend/persistence/InMemoryWithFilesStorageIT.java
src/test/resources/data/files/5c73531c-6fc4-426c-adcb-afc5c140a0f7.json [new file with mode: 0644]
src/test/resources/data/files/618e89ae-fdc0-4c65-8055-f49908295e8f.json [deleted file]
src/test/resources/data/files/chatrooms.json
src/test/resources/data/mongodb/chatRoomTo.json