@@ -153,23 +153,23 @@ void FullTest::onRun() {
153
153
{ // test GET with path parameter
154
154
auto response = client->getWithParams (" my_test_param" , connection);
155
155
OATPP_ASSERT (response->getStatusCode () == 200 );
156
- auto dto = response->readBodyToDto <app::TestDto>(objectMapper.get ());
156
+ auto dto = response->readBodyToDto <oatpp::Object< app::TestDto> >(objectMapper.get ());
157
157
OATPP_ASSERT (dto);
158
158
OATPP_ASSERT (dto->testValue == " my_test_param" );
159
159
}
160
160
161
161
{ // test GET with query parameters
162
162
auto response = client->getWithQueries (" oatpp" , 1 , connection);
163
163
OATPP_ASSERT (response->getStatusCode () == 200 );
164
- auto dto = response->readBodyToDto <app::TestDto>(objectMapper.get ());
164
+ auto dto = response->readBodyToDto <oatpp::Object< app::TestDto> >(objectMapper.get ());
165
165
OATPP_ASSERT (dto);
166
166
OATPP_ASSERT (dto->testValue == " name=oatpp&age=1" );
167
167
}
168
168
169
169
{ // test GET with query parameters
170
170
auto response = client->getWithQueriesMap (" value1" , 32 , 0.32 , connection);
171
171
OATPP_ASSERT (response->getStatusCode () == 200 );
172
- auto dto = response->readBodyToDto <app::TestDto>(objectMapper.get ());
172
+ auto dto = response->readBodyToDto <oatpp::Object< app::TestDto> >(objectMapper.get ());
173
173
OATPP_ASSERT (dto);
174
174
OATPP_ASSERT (dto->testMap );
175
175
OATPP_ASSERT (dto->testMap ->size () == 3 );
@@ -181,15 +181,15 @@ void FullTest::onRun() {
181
181
{ // test GET with header parameter
182
182
auto response = client->getWithHeaders (" my_test_header" , connection);
183
183
OATPP_ASSERT (response->getStatusCode () == 200 );
184
- auto dto = response->readBodyToDto <app::TestDto>(objectMapper.get ());
184
+ auto dto = response->readBodyToDto <oatpp::Object< app::TestDto> >(objectMapper.get ());
185
185
OATPP_ASSERT (dto);
186
186
OATPP_ASSERT (dto->testValue == " my_test_header" );
187
187
}
188
188
189
189
{ // test POST with body
190
190
auto response = client->postBody (" my_test_body" , connection);
191
191
OATPP_ASSERT (response->getStatusCode () == 200 );
192
- auto dto = response->readBodyToDto <app::TestDto>(objectMapper.get ());
192
+ auto dto = response->readBodyToDto <oatpp::Object< app::TestDto> >(objectMapper.get ());
193
193
OATPP_ASSERT (dto);
194
194
OATPP_ASSERT (dto->testValue == " my_test_body" );
195
195
}
0 commit comments