Skip to content

Instantly share code, notes, and snippets.

@tonfever
Created September 5, 2018 06:24
Show Gist options
  • Save tonfever/4b92bfdf2f4b5e9a16fb03da37283325 to your computer and use it in GitHub Desktop.
Save tonfever/4b92bfdf2f4b5e9a16fb03da37283325 to your computer and use it in GitHub Desktop.
DefaultScenario of Citrus Simulator
@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