79481306

Date: 2025-03-03 15:04:58
Score: 1
Natty:
Report link

It turned out that following line is enough for Serenity to pick up the OpenAPI generated rest requests:

@Override
public <T> T execute(Function<Response, T> handler) {
    return handler.apply(RestRequests.given(reqSpec.build(), respSpec.build()).request(REQ_METHOD, REQ_URI));
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rokko_11