From 45fa64c72efea4bb07d5f72ec3088cad8c3246a7 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Tue, 5 Sep 2023 23:38:32 +0200 Subject: [PATCH] refactor: Renamed `ChatRoom` into `ChatRoomData` - Aligned Code --- .../resources/data/mongodb/messageTo.json | 67 +++---------------- 1 file changed, 8 insertions(+), 59 deletions(-) diff --git a/src/test/resources/data/mongodb/messageTo.json b/src/test/resources/data/mongodb/messageTo.json index 2021e0ae..dd64f59f 100644 --- a/src/test/resources/data/mongodb/messageTo.json +++ b/src/test/resources/data/mongodb/messageTo.json @@ -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" @@ -39,12 +28,8 @@ }, "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" @@ -55,45 +40,9 @@ }, "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" -} -- 2.20.1