Fix mock test
This commit is contained in:
parent
3933cfa2be
commit
a9871eb470
@ -121,6 +121,8 @@ public class BasicForumServiceImplTest {
|
||||
ForumThread forumThread = new ForumThread();
|
||||
forumThread.addPost(post);
|
||||
|
||||
when(postRepository.findByThread(forumThread)).thenReturn(List.of(post));
|
||||
|
||||
when(readStateRepository.find(eq(goodUser), isA(ForumPost.class))).thenReturn(readState);
|
||||
when(readStateRepository.find(eq(badUser), isA(ForumPost.class))).thenReturn(notReadState);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user