Created
September 5, 2018 06:24
-
-
Save tonfever/4b92bfdf2f4b5e9a16fb03da37283325 to your computer and use it in GitHub Desktop.
DefaultScenario of Citrus Simulator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Scenario("DEFAULT_SCENARIO") | |
public class DefaultScenario extends AbstractSimulatorScenario { | |
@Override | |
public void run(ScenarioRunner scenario) { | |
scenario | |
.http() | |
.receive(httpServerReceiveActionBuilder -> httpServerReceiveActionBuilder | |
.get() | |
); | |
scenario | |
.http() | |
.send((builder -> builder | |
.response(HttpStatus.OK) | |
.payload("This is a default response!")) | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment