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
{{ message }}
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.
Currently, we only test that the method -- e.g. TbdexHttpClient.sendMessage or TbdexHttpClient.getOfferings -- does not throw an error when it is called. We should also be testing that the server received a request at the correct path and with the correct headers and body
okhttp has an API to test this with mockWebServer.takeRequest(). See documentation here
The text was updated successfully, but these errors were encountered:
@diehuxx would you say this issue can be closed, or do we need a bit more tests? i see #177 is referenced here, but not sure if that PR included checking all client requests having expected path/headers/body.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently, we only test that the method -- e.g.
TbdexHttpClient.sendMessage
orTbdexHttpClient.getOfferings
-- does not throw an error when it is called. We should also be testing that the server received a request at the correct path and with the correct headers and bodyokhttp
has an API to test this withmockWebServer.takeRequest()
. See documentation hereThe text was updated successfully, but these errors were encountered: