citrusframework / citrus-simulator

Standalone simulator for different messaging transports such as Http REST, SOAP WebService, JMS, RMI, mail messaging and more
Apache License 2.0
44 stars 46 forks source link

easy response helpers #221

Closed bbortt closed 11 months ago

bbortt commented 11 months ago

we have a lot of these in our code:

        scenario.$(scenario.http()
                .send()
                    .response(HttpStatus.OK)
                    .message()
                    .contentType(MediaType.APPLICATION_JSON_VALUE));
                    .body(myJsonObject)

the following would help for sure:

        scenario.$(
            scenario.http()
                .sendOkJson(myJsonObject)
        );

more to come in the future, maybe...