From c7b11d27feb504683939c0b046795265271f9d9b Mon Sep 17 00:00:00 2001 From: YuCheng Hu Date: Wed, 4 Oct 2023 08:20:53 -0400 Subject: [PATCH] =?UTF-8?q?ZCH-18=20bookmarks=20=E8=BF=94=E5=9B=9E?= =?UTF-8?q?=E7=9A=84=E5=AF=B9=E8=B1=A1=E5=BA=94=E8=AF=A5=E6=98=AF=20Array?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ossez/discourse/client/test/TopicServiceTest.java | 2 +- .../java/com/ossez/discourse/common/model/dto/Topic.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/test/java/com/ossez/discourse/client/test/TopicServiceTest.java b/client/src/test/java/com/ossez/discourse/client/test/TopicServiceTest.java index 5fb573f..7a4c45a 100644 --- a/client/src/test/java/com/ossez/discourse/client/test/TopicServiceTest.java +++ b/client/src/test/java/com/ossez/discourse/client/test/TopicServiceTest.java @@ -36,7 +36,7 @@ public class TopicServiceTest extends TestBase { Optional topic = topicsService.getTopic(DISCOURSE_TOPIC_ID); assertThat(topic).isNotEmpty(); - assertThat(topic.get().getPostStream().getPosts().size()).isGreaterThan(1); + assertThat(topic.get().getPostStream().getPosts().size()).isGreaterThan(0); assertThat(topic.get().getPostStream().getPosts().get(0).getId()).isEqualTo(DISCOURSE_POST_ID); assertThat(topic.get().getId()).isEqualTo(DISCOURSE_TOPIC_ID); assertThat(topic.get().getTitle()).isNotEmpty(); diff --git a/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java b/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java index 93210f5..26a8729 100644 --- a/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java +++ b/common/src/main/java/com/ossez/discourse/common/model/dto/Topic.java @@ -47,7 +47,7 @@ public class Topic { private List actionsSummary; private Integer chunkSize; private Boolean bookmarked; - private String bookmarks; + private List bookmarks; private String topicTimer; private Long messageBus_LastId; private Integer participantCount; @@ -369,11 +369,11 @@ public class Topic { this.bookmarked = bookmarked; } - public String getBookmarks() { + public List getBookmarks() { return bookmarks; } - public void setBookmarks(String bookmarks) { + public void setBookmarks(List bookmarks) { this.bookmarks = bookmarks; }