@@ -48,7 +48,7 @@ class EmergencyEvacuationApplicationEndToEndTest extends AysEndToEndTest {
48
48
private final EmergencyEvacuationApplicationToApplicationResponseMapper emergencyEvacuationApplicationToApplicationResponseMapper = EmergencyEvacuationApplicationToApplicationResponseMapper .initialize ();
49
49
50
50
51
- private final String BASE_PATH = "/api/v1" ;
51
+ private static final String BASE_PATH = "/api/v1" ;
52
52
53
53
@ Test
54
54
void givenValidEmergencyEvacuationApplicationListRequest_whenEmergencyEvacuationApplicationsFound_thenReturnAysPageResponseOfEmergencyEvacuationApplicationsResponse () throws Exception {
@@ -116,6 +116,14 @@ void givenValidEmergencyEvacuationApplicationListRequest_whenEmergencyEvacuation
116
116
.isNotEmpty ())
117
117
.andExpect (AysMockResultMatchersBuilders .contents ("phoneNumber.lineNumber" )
118
118
.isNotEmpty ())
119
+ .andExpect (AysMockResultMatchersBuilders .contents ("applicantFirstName" )
120
+ .exists ())
121
+ .andExpect (AysMockResultMatchersBuilders .contents ("applicantLastName" )
122
+ .exists ())
123
+ .andExpect (AysMockResultMatchersBuilders .contents ("applicantPhoneNumber.countryCode" )
124
+ .exists ())
125
+ .andExpect (AysMockResultMatchersBuilders .contents ("applicantPhoneNumber.lineNumber" )
126
+ .exists ())
119
127
.andExpect (AysMockResultMatchersBuilders .contents ("seatingCount" )
120
128
.isNotEmpty ())
121
129
.andExpect (AysMockResultMatchersBuilders .contents ("status" )
@@ -174,25 +182,33 @@ void givenValidEmergencyEvacuationApplicationListRequest_whenEmergencyEvacuation
174
182
.isNotEmpty ())
175
183
.andExpect (AysMockResultMatchersBuilders .contentSize ()
176
184
.value (0 ))
177
- .andExpect (AysMockResultMatchersBuilders .firstContent ("id" )
185
+ .andExpect (AysMockResultMatchersBuilders .contents ("id" )
186
+ .doesNotExist ())
187
+ .andExpect (AysMockResultMatchersBuilders .contents ("referenceNumber" )
188
+ .doesNotExist ())
189
+ .andExpect (AysMockResultMatchersBuilders .contents ("firstName" )
190
+ .doesNotExist ())
191
+ .andExpect (AysMockResultMatchersBuilders .contents ("lastName" )
178
192
.doesNotExist ())
179
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "referenceNumber " )
193
+ .andExpect (AysMockResultMatchersBuilders .contents ( "phoneNumber.countryCode " )
180
194
.doesNotExist ())
181
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "firstName " )
195
+ .andExpect (AysMockResultMatchersBuilders .contents ( "phoneNumber.lineNumber " )
182
196
.doesNotExist ())
183
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "lastName " )
197
+ .andExpect (AysMockResultMatchersBuilders .contents ( "applicantFirstName " )
184
198
.doesNotExist ())
185
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "phoneNumber.countryCode " )
199
+ .andExpect (AysMockResultMatchersBuilders .contents ( "applicantLastName " )
186
200
.doesNotExist ())
187
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "phoneNumber.lineNumber " )
201
+ .andExpect (AysMockResultMatchersBuilders .contents ( "applicantPhoneNumber.countryCode " )
188
202
.doesNotExist ())
189
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "seatingCount " )
203
+ .andExpect (AysMockResultMatchersBuilders .contents ( "applicantPhoneNumber.lineNumber " )
190
204
.doesNotExist ())
191
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "status " )
205
+ .andExpect (AysMockResultMatchersBuilders .contents ( "seatingCount " )
192
206
.doesNotExist ())
193
- .andExpect (AysMockResultMatchersBuilders .firstContent ( "isInPerson " )
207
+ .andExpect (AysMockResultMatchersBuilders .contents ( "status " )
194
208
.doesNotExist ())
195
- .andExpect (AysMockResultMatchersBuilders .firstContent ("createdAt" )
209
+ .andExpect (AysMockResultMatchersBuilders .contents ("isInPerson" )
210
+ .doesNotExist ())
211
+ .andExpect (AysMockResultMatchersBuilders .contents ("createdAt" )
196
212
.doesNotExist ())
197
213
.andExpect (AysMockResultMatchersBuilders .response ("pageNumber" )
198
214
.value (1 ))
0 commit comments