Add wxWebResponse::AsString() test

This commit is contained in:
Tobias Taschner 2018-10-29 23:20:47 +01:00
parent 6530e3c08e
commit d4362f4bca
No known key found for this signature in database
GPG Key ID: AE6ECD71294F87FD

View File

@ -119,6 +119,13 @@ TEST_CASE_METHOD(RequestFixture, "WebRequest", "[net][.]")
Run(); Run();
} }
SECTION("GET data as string")
{
Create("/base64/VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZw==");
Run();
REQUIRE( request->GetResponse()->AsString() == "The quick brown fox jumps over the lazy dog" );
}
SECTION("PUT file data") SECTION("PUT file data")
{ {
Create("/put"); Create("/put");