Closed ginkel closed 3 years ago
This is more of a question rather than an issue:
I'm trying to express an expectation that that comprises a path and a header, such as in:
mockServer .expect() .withPath("/foo?arg=value") .withHeader("Authorization", "bearer ...")
Unfortunately, path and header can't seem to be combined -- withPath returns a Pathable, which does not expose withHeader.
withPath
Pathable
withHeader
Is there any way to combine both expectations that I may have missed?
I sorted out the issue by using takeRequest to validate that the expected headers were sent.
takeRequest
This is more of a question rather than an issue:
I'm trying to express an expectation that that comprises a path and a header, such as in:
Unfortunately, path and header can't seem to be combined --
withPath
returns aPathable
, which does not exposewithHeader
.Is there any way to combine both expectations that I may have missed?