You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Does Jadler support checking for specific form values in requests? I couldn't find anything about it in the documentation. I have several functions that make HTTP requests based on their arguments, and want to make sure that they're sending the right values in the requests, so ideally I'd be able to write a test like:
In theory I could use .havingBodyEqualTo() on the entire stringified request, but in this case I'm testing multipart-form requests and the library I'm using to generate them (okhttp3) randomly generates form separators, so the string forms of two otherwise identical requests won't actually match.
Any pointers/advice? Thanks!
The text was updated successfully, but these errors were encountered:
Does Jadler support checking for specific form values in requests? I couldn't find anything about it in the documentation. I have several functions that make HTTP requests based on their arguments, and want to make sure that they're sending the right values in the requests, so ideally I'd be able to write a test like:
In theory I could use
.havingBodyEqualTo()
on the entire stringified request, but in this case I'm testing multipart-form requests and the library I'm using to generate them (okhttp3) randomly generates form separators, so the string forms of two otherwise identical requests won't actually match.Any pointers/advice? Thanks!
The text was updated successfully, but these errors were encountered: