1
1
package com .moing .backend .domain .missionArchive .representation ;
2
2
3
3
import com .moing .backend .config .CommonControllerTest ;
4
- import com .moing .backend .domain .missionArchive .application .dto .req .MissionArchiveHeartReq ;
5
4
import com .moing .backend .domain .missionArchive .application .dto .req .MissionArchiveReq ;
6
5
import com .moing .backend .domain .missionArchive .application .dto .res .*;
7
6
import com .moing .backend .domain .missionArchive .application .service .*;
@@ -65,6 +64,7 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
65
64
.count (1L )
66
65
.heartStatus ("[True/False]" )
67
66
.hearts (1L )
67
+ .contents ("contents" )
68
68
.build ();
69
69
70
70
given (missionArchiveCreateUseCase .createArchive (any (),any (),any ())).willReturn (output );
@@ -93,7 +93,10 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
93
93
),
94
94
requestFields (
95
95
fieldWithPath ("status" ).description ("미션 인증 상태 [COMPLETE/SKIP]" ),
96
- fieldWithPath ("archive" ).description ("미션 인증물 [s3URL/text/링크] " )
96
+ fieldWithPath ("archive" ).description ("미션 인증물 [s3URL/text/링크] " ),
97
+ fieldWithPath ("contents" ).description ("미션 인증 문구 [null 허용] " )
98
+
99
+
97
100
),
98
101
responseFields (
99
102
fieldWithPath ("isSuccess" ).description ("true" ),
@@ -105,7 +108,8 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
105
108
fieldWithPath ("data.status" ).description ("미션 인증 상태" ),
106
109
fieldWithPath ("data.count" ).description ("미션 인증 횟수" ),
107
110
fieldWithPath ("data.hearts" ).description ("미션 인증 좋아요 수" ),
108
- fieldWithPath ("data.heartStatus" ).description ("미션 인증 좋아요 상태" )
111
+ fieldWithPath ("data.heartStatus" ).description ("미션 인증 좋아요 상태" ),
112
+ fieldWithPath ("data.contents" ).description ("미션 인증 문구" )
109
113
)
110
114
)
111
115
)
@@ -132,6 +136,7 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
132
136
.count (1L )
133
137
.heartStatus ("[True/False]" )
134
138
.hearts (1L )
139
+ .contents ("contents" )
135
140
.build ();
136
141
137
142
given (missionArchiveUpdateUseCase .updateArchive (any (),any (),any ())).willReturn (output );
@@ -160,7 +165,9 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
160
165
),
161
166
requestFields (
162
167
fieldWithPath ("status" ).description ("미션 인증 상태 [COMPLETE/SKIP]" ),
163
- fieldWithPath ("archive" ).description ("미션 인증물 [s3URL/text/링크] " )
168
+ fieldWithPath ("archive" ).description ("미션 인증물 [s3URL/text/링크] " ),
169
+ fieldWithPath ("contents" ).description ("미션 인증 문구 [null 허용] " )
170
+
164
171
),
165
172
responseFields (
166
173
fieldWithPath ("isSuccess" ).description ("true" ),
@@ -173,7 +180,9 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
173
180
fieldWithPath ("data.status" ).description ("미션 인증 상태" ),
174
181
fieldWithPath ("data.count" ).description ("미션 인증 횟수" ),
175
182
fieldWithPath ("data.heartStatus" ).description ("미션 인증 좋아요 상태" ),
176
- fieldWithPath ("data.hearts" ).description ("미션 인증 좋아요 수" )
183
+ fieldWithPath ("data.hearts" ).description ("미션 인증 좋아요 수" ),
184
+ fieldWithPath ("data.contents" ).description ("미션 인증 문구" )
185
+
177
186
)
178
187
)
179
188
)
@@ -236,6 +245,7 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
236
245
.count (1L )
237
246
.heartStatus ("[True/False]" )
238
247
.hearts (1L )
248
+ .contents ("contents" )
239
249
.build ());
240
250
241
251
MyMissionArchiveRes output = MyMissionArchiveRes .builder ()
@@ -278,7 +288,8 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
278
288
fieldWithPath ("data.archives[].status" ).description ("미션 인증 상태" ),
279
289
fieldWithPath ("data.archives[].count" ).description ("미션 인증 횟수" ),
280
290
fieldWithPath ("data.archives[].heartStatus" ).description ("미션 인증 좋아요 상태" ),
281
- fieldWithPath ("data.archives[].hearts" ).description ("미션 인증 좋아요 수" )
291
+ fieldWithPath ("data.archives[].hearts" ).description ("미션 인증 좋아요 수" ),
292
+ fieldWithPath ("data.archives[].contents" ).description ("미션 인증 문구" )
282
293
283
294
284
295
)
@@ -304,6 +315,7 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
304
315
.heartStatus ("[True/False]" )
305
316
.hearts (3 )
306
317
.makerId (1L )
318
+ .contents ("contents" )
307
319
.build ());
308
320
309
321
given (missionArchiveReadUseCase .getPersonalArchive (any (),any ())).willReturn (output );
@@ -343,10 +355,11 @@ public class MissionArchiveControllerTest extends CommonControllerTest {
343
355
fieldWithPath ("data[].count" ).description ("미션 인증 횟수" ),
344
356
fieldWithPath ("data[].heartStatus" ).description ("미션 인증 좋아요 상태 " ),
345
357
fieldWithPath ("data[].hearts" ).description ("미션 인증 좋아요 수 " ),
346
- fieldWithPath ("data[].makerId" ).description ("미션 인증한 사람 " )
358
+ fieldWithPath ("data[].makerId" ).description ("미션 인증한 사람 " ),
359
+ fieldWithPath ("data[].contents" ).description ("미션 인증 문구" )
347
360
348
361
349
- )
362
+ )
350
363
)
351
364
)
352
365
.andReturn ();
0 commit comments