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; }