11package com .nexters .teamace .fairy .presentation ;
22
3+ import static com .epages .restdocs .apispec .ResourceDocumentation .parameterWithName ;
34import static com .epages .restdocs .apispec .ResourceDocumentation .resource ;
45import static com .epages .restdocs .apispec .Schema .schema ;
56import static org .hamcrest .Matchers .equalTo ;
@@ -40,7 +41,10 @@ void getFairy_success() throws Exception {
4041 .willReturn (new UserInfo (1L , "test-user" , "테스트유저" ));
4142
4243 List <FairyInfo > fairyInfos =
43- List .of (new FairyInfo (1L , "눈물방울 요정" , "sad.png" , "sad_sil.png" , "슬픔" ));
44+ List .of (
45+ new FairyInfo (1L , "눈물방울 요정" , "sadness.png" , "sadness_sil.png" , "슬픔" ),
46+ new FairyInfo (2L , "화르르 요정" , "anger.png" , "anger_sil.png" , "분노" ),
47+ new FairyInfo (3L , "질투쟁이 요정" , "jealousy.png" , "jealousy_sil.png" , "질투" ));
4448 FairyResult fairyResult = new FairyResult (fairyInfos );
4549
4650 given (fairyService .getFairy (any (UserInfo .class ), any (Long .class ))).willReturn (fairyResult );
@@ -67,6 +71,9 @@ void getFairy_success() throws Exception {
6771 ResourceSnippetParameters .builder ()
6872 .tag ("Fairy" )
6973 .description ("채팅방 기반 요정 추천 조회" )
74+ .queryParameters (
75+ parameterWithName ("chatRoomId" )
76+ .description ("채팅방 ID" ))
7077 .responseFields (
7178 fieldWithPath ("success" )
7279 .type (JsonFieldType .BOOLEAN )
0 commit comments