refactor: Renamed `ChatRoom` into `ChatRoomData` - Aligned Code
authorKai Moritz <kai@juplo.de>
Tue, 5 Sep 2023 21:38:32 +0000 (23:38 +0200)
committerKai Moritz <kai@juplo.de>
Tue, 5 Sep 2023 21:38:32 +0000 (23:38 +0200)
src/test/resources/data/mongodb/messageTo.json

index 2021e0a..dd64f59 100644 (file)
@@ -4,31 +4,20 @@
   },
   "chatRoomId": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
   "user": "peter",
-  "serial": {
-    "$numberLong": "0"
-  },
+  "id": 1,
+  "serial": 0,
   "time": "2023-01-13T20:43:16.803382151",
   "text": "Hallo, ich heiße Peter!",
   "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
 }
 {
-    {
-      "_id": "ute--1",
-      "serial": 1,
-      "time": "2023-01-13T20:43:16.804049969",
-      "text": "Ich bin Ute..."
-    },
   "_id": {
     "$oid": "64f7952cecf06d750cad4b9d"
   },
   "chatRoomId": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
   "user": "ute",
-  "id": {
-    "$numberLong": "1"
-  },
-  "serial": {
-    "$numberLong": "1"
-  },
+  "id": 1,
+  "serial": 1,
   "time": "2023-01-13T20:43:16.804049969",
   "text": "Ich bin Ute...",
   "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
   },
   "chatRoomId": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
   "user": "peter",
-  "id": {
-    "$numberLong": "2"
-  },
-  "serial": {
-    "$numberLong": "2"
-  },
+  "id": 2,
+  "serial": 2,
   "time": "2023-01-13T20:43:16.804092782",
   "text": "Willst du mit mir gehen?",
   "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
   },
   "chatRoomId": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
   "user": "klaus",
-  "id": {
-    "$numberLong": "1"
-  },
-  "serial": {
-    "$numberLong": "3"
-  },
+  "id": 1,
+  "serial": 3,
   "time": "2023-01-13T20:43:16.804122604",
   "text": "Ja? Nein? Vielleicht??",
   "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
 }
-{
-  "_id": {
-    "$oid": "64f7953ddf7a9063e0b1f7dd"
-  },
-  "chatRoomId": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
-  "user": "peter",
-  "id": {
-    "$numberLong": "2"
-  },
-  "serial": {
-    "$numberLong": "1"
-  },
-  "time": "2023-09-05T22:52:39.274621568",
-  "text": "Hallo, ich heiße Peter!",
-  "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
-}
-{
-  "_id": {
-    "$oid": "64f7953ddf7a9063e0b1f7de"
-  },
-  "chatRoomId": "5c73531c-6fc4-426c-adcb-afc5c140a0f7",
-  "user": "peter",
-  "id": {
-    "$numberLong": "3"
-  },
-  "serial": {
-    "$numberLong": "2"
-  },
-  "time": "2023-09-05T22:52:41.226211877",
-  "text": "Hallo, ich heiße Peter!",
-  "_class": "de.juplo.kafka.chat.backend.persistence.storage.mongodb.MessageTo"
-}