Can a resource have more than one required search parameter?
As following test asserts that withRequiredParameters() of a SearchQuery is never called twice, can a resource have more than one required search parameter?
Can a resource have more than one required search parameter?
As following test asserts that withRequiredParameters() of a SearchQuery is never called twice, can a resource have more than one required search parameter?
@gayanw, when you have >1 required parameters you’re supposed to do this:
.withRequiredParameters("p1", "p2", ...)
Not this:
.withRequiredParameters("p1").withRequiredParameters("p2")...
So yes, the code you’ve shared is doing what is intended. I have no idea why that test would be in ConceptController1_8Test, though. It belongs in SearchBuilderTest or something like that.
(If it were me I would have written the code a different way, to support multiple calls to requireParameter method that takes just one argument, but that’s personal preference.)