citrusframework / citrusframework/citrus-simulator

Rewriting ScenarioDesigner method

Open
#326 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
47
Forks
45
Avg merge
4d 10h
Merged PRs (30d)
7

Description

In my old citrus version code I have below method:-

@Scenario("Example")
@RequestMapping(value = "/sim/example", method = RequestMethod.GET)
public class GetCircuit extends AbstractSimulatorScenario {

@Override
public void run(ScenarioDesigner scenario) {

scenario.http().receive().get();
scenario.http().send().response(HttpStatus.OK).header("ContentType", "application/json")
.payload(new ClassPathResource("datamanager/example.json"));

}

}

In newer version how can I write the same code as ScenarioDesigner class no longer exist?

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue only provides an older Java example using ScenarioDesigner, @Scenario, @RequestMapping, and AbstractSimulatorScenario; it names no current file or test. Start by locating the newer Citrus simulator scenario API and its HTTP examples. Done means documenting and verifying the equivalent configuration for the shown GET endpoint and JSON response.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Documentation
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.