package de.juplo.kafka.chat.backend.domain;
+import lombok.EqualsAndHashCode;
import lombok.Getter;
+import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@Slf4j
+@EqualsAndHashCode(of = { "id" })
+@ToString(of = { "id", "name" })
public class ChatRoom
{
@Getter
assertThat(chathome.getChatroom(chatroom.getId()).get().getMessages().toStream()).containsExactlyElementsOf(List.of(m1, m2, m3, m4));
stop();
+ start();
+
+ assertThat(chathome.list()).containsExactlyElementsOf(List.of(chatroom));
+ assertThat(chathome.getChatroom(chatroom.getId())).contains(chatroom);
+ assertThat(chathome.getChatroom(chatroom.getId()).get().getMessages().toStream()).containsExactlyElementsOf(List.of(m1, m2, m3, m4));
}
@BeforeEach