diff --git a/src/test/java/com/openisle/controller/NotificationControllerTest.java b/src/test/java/com/openisle/controller/NotificationControllerTest.java index 53a8c80f8..d956b6eb9 100644 --- a/src/test/java/com/openisle/controller/NotificationControllerTest.java +++ b/src/test/java/com/openisle/controller/NotificationControllerTest.java @@ -47,7 +47,7 @@ class NotificationControllerTest { .principal(new UsernamePasswordAuthenticationToken("alice","p"))) .andExpect(status().isOk()) .andExpect(jsonPath("$[0].id").value(1)) - .andExpect(jsonPath("$[0].postId").value(2)); + .andExpect(jsonPath("$[0].post.id").value(2)); } @Test