Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ".headers" declaration that takes a Map for validation #345
Currently one can validate headers by adding
For building nice TestBehavior classes it would be great to have a
It would allow something like this in a TestBehavior implementation:
The problem with the single header declaration is, that I cannot apply a variable number of them to the TestBehavior:
Thank you for your input! Even with a fixed amount of headers, a header map could be useful, if you have to validate a lots of headers that are messing up your test step definition. A map could enhance readability of those test cases.
I'm also curious about your use case for variable amounts of headers.
Glad you like my suggestion.
Actually it is not a single test case but a TestBehavior that can be "configured" and reused in multiple testcases. I have built a processing system and got lots of end-to-end tests from business. They all share the same flow, but contain different input data and therefore have different results.
So I wrote some TestBehaviors - for example to consume and assert a resulting JMS message. Now I can just apply the Behaviors in each test case and "configure" them with different expectations.
Ah! Now I see the