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>
Sun, 15 Jan 2023 18:38:33 +0000 (19:38 +0100)
commit1b5c79b6ff8effece0205bbb0498f14b49baa981
treebce554472325269d8cdab5673b0a93c2edd1bd88
parentfa1c5b6d1d6f79c6e1e2037af9c58a295ae04e97
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