There was an error while loading. Please reload this page.
1 parent 9c309d9 commit bd2ceb4Copy full SHA for bd2ceb4
src/test/java/com/kvark900/TestControllers.java
@@ -42,7 +42,7 @@ public void testController() throws Exception{
42
43
List<Author> allAuthors = Collections.singletonList(author);
44
45
- given(authorService.findAll()).willReturn();
+ given(authorService.findAll()).willReturn(allAuthors);
46
47
mockMvc.perform(get("/authors")
48
.contentType(MediaType.APPLICATION_JSON))
0 commit comments