File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/test/java/com/example/log4u/domain/follow Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ void deleteFollowSuccess() {
6868 Long userId = saveOneFollow ();
6969
7070 followService .deleteFollow (userId , TARGET );
71-
71+
7272 assertThrows (FollowNotFoundException .class ,
7373 () -> followService .deleteFollow (userId , TARGET ));
7474 }
@@ -81,8 +81,11 @@ void deleteFollowFailureWithFollowNotFound() {
8181 user = userRepository .save (user );
8282 final Long userId = user .getUserId ();
8383
84+ User target = UserFixture .createUserFixtureWithNickname (TARGET );
85+ userRepository .save (target );
86+
8487 assertThrows (FollowNotFoundException .class ,
85- () -> followService .deleteFollow (userId , WRONG_TARGET ));
88+ () -> followService .deleteFollow (userId , TARGET ));
8689 }
8790
8891 private Long saveOneFollow () {
You can’t perform that action at this time.
0 commit comments