Skip to content

Commit

Permalink
Updated RESTAdapter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Apr 23, 2024
1 parent 2559a00 commit d7bbd34
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unittests/general/Several/RESTAdapterTestsU.pas
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ interface
DUnitX.TestFramework,
BusinessObjectsU,
Generics.Collections,
System.JSON,
JsonDataObjects,
MVCFramework.RESTClient,
MVCFramework.Commons,
MVCFramework.Serializer.Commons,
Expand Down Expand Up @@ -73,7 +73,7 @@ interface
[Headers('Accept', 'application/json')]
[Headers('ContentType', 'application/json')]
[RESTResource(HttpGet, '/adapter/testconsumejson')]
function HeadersApplicationJSON: TJSONValue;
function HeadersApplicationJSON: TJsonBaseObject;

[Headers('Accept', 'text/plain')]
[Headers('ContentType', 'text/plain')]
Expand Down Expand Up @@ -214,7 +214,7 @@ procedure TTestRESTAdapter.TestHeadersApplicationJSON;
begin
Res := TESTService.HeadersApplicationJSON as TJSONObject;
try
Assert.AreEqual('Hello World', Res.GetValue('key').Value);
Assert.AreEqual('Hello World', Res.S['key']);
finally
Res.Free;
end;
Expand Down

0 comments on commit d7bbd34

Please sign in to comment.