super();
}
public void testAllDiscussionsDataOfForum() throws Exception {
Forum forum = this.forumAggregate();
DomainRegistry.forumRepository().save(forum);
Discussion[] discussions = this.discussionAggregates(forum);
for (Discussion discussion : discussions) {
DomainRegistry.discussionRepository().save(discussion);
}
Collection<DiscussionData> discussionsData =
discussionQueryService.allDiscussionsDataOfForum(
forum.tenant().id(),
forum.forumId().id());
assertNotNull(discussionsData);
assertFalse(discussionsData.isEmpty());
assertEquals(discussions.length, discussionsData.size());
}